Sha256: 601bef67ae7c1ff1834496596643daee8bb1d24a27a5f90feffff8d3d43a2480

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 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 (RFuzz::Browser)</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/rfuzz/browser.rb, line 17</span>
17:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">port</span>=<span class="ruby-value">80</span>, <span class="ruby-identifier">ops</span>={}, <span class="ruby-identifier">agent</span>=<span class="ruby-constant">DEFAULT_AGENT</span>)
18:       <span class="ruby-ivar">@agent</span> = <span class="ruby-identifier">agent</span>
19:       <span class="ruby-ivar">@client</span> = <span class="ruby-constant">HttpClient</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">host</span>, <span class="ruby-identifier">port</span>, <span class="ruby-identifier">ops</span>)
20: 
21:       <span class="ruby-identifier">ops</span>[<span class="ruby-identifier">:head</span>] <span class="ruby-operator">||=</span> {}
22:       <span class="ruby-identifier">ops</span>[<span class="ruby-identifier">:head</span>][<span class="ruby-value str">&quot;User-Agent&quot;</span>] <span class="ruby-operator">||=</span> <span class="ruby-ivar">@agent</span> 
23: 
24:       <span class="ruby-ivar">@doc</span> = <span class="ruby-keyword kw">nil</span>
25:       <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
26:     <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rfuzz-0.7 doc/rdoc/classes/RFuzz/Browser.src/M000068.html
rfuzz-0.8 doc/rdoc/classes/RFuzz/Browser.src/M000083.html
rfuzz-0.9 doc/rdoc/classes/RFuzz/Browser.src/M000084.html