Sha256: 3377b45604247852fd8b289f3ce7270b374f54969239d8f18a0f956530f4ba72

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>parse_chunk_header (Rev)</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 331</span>
331:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_chunk_header</span>
332:       <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">parse_header</span>(<span class="ruby-ivar">@chunk_header</span>)
333: 
334:       <span class="ruby-ivar">@bytes_remaining</span> = <span class="ruby-ivar">@chunk_header</span>.<span class="ruby-identifier">chunk_size</span>
335:       <span class="ruby-ivar">@chunk_header</span> = <span class="ruby-constant">HttpChunkHeader</span>.<span class="ruby-identifier">new</span>
336: 
337:       <span class="ruby-ivar">@state</span> = <span class="ruby-ivar">@bytes_remaining</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">:chunk_body</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">:response_footer</span>      
338:       <span class="ruby-keyword kw">true</span>
339:     <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.src/M000003.html