Sha256: 68a261e87f81f38b8376d7e5dbbc8af5fb26a39ba2535125c66ceae97787fae7
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>new (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 142</span> 142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">socket</span>) 143: <span class="ruby-keyword kw">super</span> 144: 145: <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">HttpClientParser</span>.<span class="ruby-identifier">new</span> 146: <span class="ruby-ivar">@parser_nbytes</span> = <span class="ruby-value">0</span> 147: 148: <span class="ruby-ivar">@state</span> = <span class="ruby-identifier">:response_header</span> 149: <span class="ruby-ivar">@data</span> = <span class="ruby-constant">Rev</span><span class="ruby-operator">::</span><span class="ruby-constant">Buffer</span>.<span class="ruby-identifier">new</span> 150: 151: <span class="ruby-ivar">@response_header</span> = <span class="ruby-constant">HttpResponseHeader</span>.<span class="ruby-identifier">new</span> 152: <span class="ruby-ivar">@chunk_header</span> = <span class="ruby-constant">HttpChunkHeader</span>.<span class="ruby-identifier">new</span> 153: <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/M000043.html |