Sha256: 732a013ab7f35ef18c345b6f273bcf79c30ce6978c45f50aa23db87f77e31415

Contents?: true

Size: 1.63 KB

Versions: 1

Compression:

Stored size: 1.63 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>request (Rev::HttpClient)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre>     <span class="ruby-comment cmt"># File lib/rev/http_client.rb, line 170</span>
170:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">options</span> = {})
171:       <span class="ruby-identifier">raise</span> <span class="ruby-constant">RuntimeError</span>, <span class="ruby-value str">&quot;request already sent&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@requested</span>
172: 
173:       <span class="ruby-ivar">@method</span>, <span class="ruby-ivar">@uri</span>, <span class="ruby-ivar">@options</span> = <span class="ruby-identifier">method</span>, <span class="ruby-identifier">uri</span>, <span class="ruby-identifier">options</span>
174:       <span class="ruby-ivar">@requested</span> = <span class="ruby-keyword kw">true</span>
175: 
176:       <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@connected</span>
177:       <span class="ruby-identifier">send_request</span>
178:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rev-0.1.2 doc/rdoc/classes/Rev/HttpClient.src/M000044.html