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.
|
<h1>Ruby</h1>
|
|
<p>Below is an example of making a HTTP request to SITE_NAME from Ruby.</p>
|
|
<div class="ruby highlight"><pre><span></span><code><span class="nb">require</span> <span class="s1">'net/http'</span>
|
|
<span class="nb">require</span> <span class="s1">'uri'</span>
|
|
|
|
<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">'PING_URL'</span><span class="p">))</span>
|
|
</code></pre></div>
|