mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
o remove RD white lines
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
de71615260
commit
deee7cb19f
4 changed files with 3 additions and 64 deletions
|
@ -27,29 +27,24 @@ class HTTPBadResponse < HTTPError; end
|
|||
== Class Methods
|
||||
|
||||
: new( address, port = 80 )
|
||||
|
||||
create new HTTP object.
|
||||
|
||||
: port
|
||||
|
||||
returns HTTP default port, 80
|
||||
|
||||
: command_type
|
||||
|
||||
returns Command class, HTTPCommand
|
||||
|
||||
|
||||
== Methods
|
||||
|
||||
: get( path, header = nil, ret = '' )
|
||||
|
||||
get data from "path" on connecting host.
|
||||
"header" is a Hash like { 'Accept' => '*/*', ... }.
|
||||
The data will be written to "ret" using "<<" method.
|
||||
This method returns response header (Hash) and "ret".
|
||||
|
||||
: head( path, header = nil )
|
||||
|
||||
get only header from "path" on connecting host.
|
||||
"header" is a Hash like { 'Accept' => '*/*', ... }.
|
||||
This method returns header as a Hash like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue