You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
614 B

  1. <h1>Ruby</h1>
  2. <p>Below is an example of making a HTTP request to SITE_NAME from Ruby.</p>
  3. <div class="highlight"><pre><span></span><span class="nb">require</span> <span class="s1">&#39;net/http&#39;</span>
  4. <span class="nb">require</span> <span class="s1">&#39;uri&#39;</span>
  5. <span class="no">Net</span><span class="o">::</span><span class="no">HTTP</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="no">URI</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="s1">&#39;PING_URL&#39;</span><span class="p">))</span>
  6. </pre></div>