doc/rdoc/classes/RFuzz/HttpClient.html in rfuzz-0.8 vs doc/rdoc/classes/RFuzz/HttpClient.html in rfuzz-0.9
- old
+ new
@@ -103,15 +103,15 @@
resp = client.post("/test", :head => {"X-TestSend" => "Status"}, :body => "TEST BODY")
resp = client.put("/testput", :query => {"q" => "test"}, :body => "SOME JUNK")
client.reset
</pre>
<p>
-The <a href="HttpClient.html#M000029">HttpClient.reset</a> call clears
+The <a href="HttpClient.html#M000030">HttpClient.reset</a> call clears
cookies that are maintained.
</p>
<p>
-It uses <a href="HttpClient.html#M000027">method_missing</a> to do the
+It uses <a href="HttpClient.html#M000028">method_missing</a> to do the
translation of .put to "PUT /testput HTTP/1.1" so you can get
into trouble if you’re calling unknown methods on it. By default the
methods are PUT, GET, POST, DELETE, HEAD. You can change the allowed
methods by passing :allowed_methods => [:put, :get, ..] to the
initialize for the object.
@@ -143,22 +143,22 @@
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
- <a href="#M000020">build_request</a>
- <a href="#M000027">method_missing</a>
- <a href="#M000019">new</a>
- <a href="#M000030">notify</a>
- <a href="#M000023">read_chunked_body</a>
- <a href="#M000022">read_chunked_header</a>
- <a href="#M000021">read_parsed_header</a>
- <a href="#M000025">read_response</a>
- <a href="#M000028">redirect</a>
- <a href="#M000029">reset</a>
- <a href="#M000026">send_request</a>
- <a href="#M000024">store_cookies</a>
+ <a href="#M000021">build_request</a>
+ <a href="#M000028">method_missing</a>
+ <a href="#M000020">new</a>
+ <a href="#M000031">notify</a>
+ <a href="#M000024">read_chunked_body</a>
+ <a href="#M000023">read_chunked_header</a>
+ <a href="#M000022">read_parsed_header</a>
+ <a href="#M000026">read_response</a>
+ <a href="#M000029">redirect</a>
+ <a href="#M000030">reset</a>
+ <a href="#M000027">send_request</a>
+ <a href="#M000025">store_cookies</a>
</div>
</div>
</div>
@@ -287,26 +287,34 @@
<td class="context-item-desc">
Access to the host, port, default options, and cookies currently in play
</td>
</tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">sock</td>
+ <td class="context-item-value"> [RW] </td>
+ <td class="context-item-desc">
+Access to the host, port, default options, and cookies currently in play
+
+</td>
+ </tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
- <div id="method-M000019" class="method-detail">
- <a name="M000019"></a>
+ <div id="method-M000020" class="method-detail">
+ <a name="M000020"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000019.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000019.html');return false;">
+ <a href="HttpClient.src/M000020.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000020.html');return false;">
<span class="method-name">new</span><span class="method-args">(host, port, options = {})</span>
</a>
</div>
<div class="method-description">
@@ -316,16 +324,16 @@
</div>
</div>
<h3 class="section-bar">Public Instance methods</h3>
- <div id="method-M000020" class="method-detail">
- <a name="M000020"></a>
+ <div id="method-M000021" class="method-detail">
+ <a name="M000021"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000020.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000020.html');return false;">
+ <a href="HttpClient.src/M000021.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000021.html');return false;">
<span class="method-name">build_request</span><span class="method-args">(out, method, uri, req)</span>
</a>
</div>
<div class="method-description">
@@ -338,16 +346,16 @@
resolution).
</p>
</div>
</div>
- <div id="method-M000027" class="method-detail">
- <a name="M000027"></a>
+ <div id="method-M000028" class="method-detail">
+ <a name="M000028"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000027.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000027.html');return false;">
+ <a href="HttpClient.src/M000028.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000028.html');return false;">
<span class="method-name">method_missing</span><span class="method-args">(symbol, *args)</span>
</a>
</div>
<div class="method-description">
@@ -358,16 +366,16 @@
construction with :allowed_methods => [:put, :get, …]
</p>
</div>
</div>
- <div id="method-M000030" class="method-detail">
- <a name="M000030"></a>
+ <div id="method-M000031" class="method-detail">
+ <a name="M000031"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000030.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000030.html');return false;">
+ <a href="HttpClient.src/M000031.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000031.html');return false;">
<span class="method-name">notify</span><span class="method-args">(event) {|| ...}</span>
</a>
</div>
<div class="method-description">
@@ -380,16 +388,16 @@
attempt fails.
</p>
</div>
</div>
- <div id="method-M000023" class="method-detail">
- <a name="M000023"></a>
+ <div id="method-M000024" class="method-detail">
+ <a name="M000024"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000023.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000023.html');return false;">
+ <a href="HttpClient.src/M000024.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000024.html');return false;">
<span class="method-name">read_chunked_body</span><span class="method-args">(header)</span>
</a>
</div>
<div class="method-description">
@@ -399,16 +407,16 @@
analysis.
</p>
</div>
</div>
- <div id="method-M000022" class="method-detail">
- <a name="M000022"></a>
+ <div id="method-M000023" class="method-detail">
+ <a name="M000023"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000022.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000022.html');return false;">
+ <a href="HttpClient.src/M000023.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000023.html');return false;">
<span class="method-name">read_chunked_header</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
@@ -416,16 +424,16 @@
Used to process chunked headers and then read up their bodies.
</p>
</div>
</div>
- <div id="method-M000021" class="method-detail">
- <a name="M000021"></a>
+ <div id="method-M000022" class="method-detail">
+ <a name="M000022"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000021.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000021.html');return false;">
+ <a href="HttpClient.src/M000022.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000022.html');return false;">
<span class="method-name">read_parsed_header</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
@@ -435,16 +443,16 @@
encoding header (since the @parser handles both).
</p>
</div>
</div>
- <div id="method-M000025" class="method-detail">
- <a name="M000025"></a>
+ <div id="method-M000026" class="method-detail">
+ <a name="M000026"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000025.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000025.html');return false;">
+ <a href="HttpClient.src/M000026.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000026.html');return false;">
<span class="method-name">read_response</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
@@ -459,16 +467,16 @@
so either write a wrapper, use net/http, or deal with it on your end.
</p>
</div>
</div>
- <div id="method-M000028" class="method-detail">
- <a name="M000028"></a>
+ <div id="method-M000029" class="method-detail">
+ <a name="M000029"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000028.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000028.html');return false;">
+ <a href="HttpClient.src/M000029.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000029.html');return false;">
<span class="method-name">redirect</span><span class="method-args">(method, resp, *args)</span>
</a>
</div>
<div class="method-description">
@@ -476,16 +484,16 @@
Keeps doing requests until it doesn’t receive a 3XX request.
</p>
</div>
</div>
- <div id="method-M000029" class="method-detail">
- <a name="M000029"></a>
+ <div id="method-M000030" class="method-detail">
+ <a name="M000030"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000029.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000029.html');return false;">
+ <a href="HttpClient.src/M000030.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000030.html');return false;">
<span class="method-name">reset</span><span class="method-args">()</span>
</a>
</div>
<div class="method-description">
@@ -493,35 +501,35 @@
Clears out the cookies in use so far in order to get a clean slate.
</p>
</div>
</div>
- <div id="method-M000026" class="method-detail">
- <a name="M000026"></a>
+ <div id="method-M000027" class="method-detail">
+ <a name="M000027"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000026.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000026.html');return false;">
+ <a href="HttpClient.src/M000027.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000027.html');return false;">
<span class="method-name">send_request</span><span class="method-args">(method, uri, req)</span>
</a>
</div>
<div class="method-description">
<p>
Does the socket connect and then <a
-href="HttpClient.html#M000020">build_request</a>, <a
-href="HttpClient.html#M000025">read_response</a> calls finally returning
+href="HttpClient.html#M000021">build_request</a>, <a
+href="HttpClient.html#M000026">read_response</a> calls finally returning
the result.
</p>
</div>
</div>
- <div id="method-M000024" class="method-detail">
- <a name="M000024"></a>
+ <div id="method-M000025" class="method-detail">
+ <a name="M000025"></a>
<div class="method-heading">
- <a href="HttpClient.src/M000024.html" target="Code" class="method-signature"
- onclick="popupCode('HttpClient.src/M000024.html');return false;">
+ <a href="HttpClient.src/M000025.html" target="Code" class="method-signature"
+ onclick="popupCode('HttpClient.src/M000025.html');return false;">
<span class="method-name">store_cookies</span><span class="method-args">(resp)</span>
</a>
</div>
<div class="method-description">
\ No newline at end of file