|
|
- <h1>Ruby</h1>
- <p>Below is an example of making a HTTP request to SITE_NAME from Ruby.</p>
- <div class="highlight"><pre><span></span><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>
- </pre></div>
|