Parse a raw cookie string into a hash of cookie-name=>Cookie pairs.
cookies = CGI::Cookie.parse("raw_cookie_string") # { "name1" => cookie1, "name2" => cookie2, ... }
Create a DRbUnknownError
exception containing this object.
Turns on net/http 1.2 (Ruby 1.8) features. Defaults to ON in Ruby 1.8 or later.
@return the XMLDecl
version of this document as a String. If no XMLDecl
has been set, returns the default version.
Version of the gem
Override to display a longer description of what this command does.
The Requirement of the unresolved dependency (not Version).
Parse obj
, returning an [op, version]
pair. obj
can be a String or a Gem::Version
.
If obj
is a String, it can be either a full requirement specification, like ">= 1.2"
, or a simple version number, like "1.2"
.
parse("> 1.0") # => [">", Gem::Version.new("1.0")] parse("1.0") # => ["=", Gem::Version.new("1.0")] parse(Gem::Version.new("1.0")) # => ["=, Gem::Version.new("1.0")]
A string representation of this Version
.
A detailed description of this gem. See also summary
Set
the version to version
, potentially also setting required_rubygems_version
if version
indicates it is a prerelease.
uri
String
parses uri
and constructs either matching URI
scheme object (FTP
, HTTP
, HTTPS
, LDAP
, LDAPS
, or MailTo
) or URI::Generic
p = URI::Parser.new p.parse("ldap://ldap.example.com/dc=example?user=john") #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>
uri
String
parses uri
and constructs either matching URI
scheme object (FTP
, HTTP
, HTTPS
, LDAP
, LDAPS
, or MailTo
) or URI::Generic
p = URI::Parser.new p.parse("ldap://ldap.example.com/dc=example?user=john") #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>
Parses a Cookie
field sent from the user-agent. Returns an array of cookies.
Parses a request from socket
. This is called internally by WEBrick::HTTPServer
.