Sends a OPTIONS request to the path
and gets a response, as an HTTPResponse
object.
Create on demand parser.
returns the parser to be used.
Unless a URI::Parser
is defined, then DEFAULT_PARSER is used.
Merge a set of command options with the set of default options (without modifying the default option hash).
Add the –prerelease option to the option parser.
Run UDP/IP server loop on the given sockets.
The return value of Socket.udp_server_sockets
is appropriate for the argument.
It calls the block for each message received.
Parses a given string as a blob that contains configuration for OpenSSL
.
If the source of the IO
is a file, then consider using parse_config.
Get the names of all sections in the current configuration
Parse the YAML document contained in yaml
. Events will be called on the handler set on the parser instance.
See Psych::Parser
and Psych::Parser#handler
Another entry point for the parser. If you use this method, you must implement RECEIVER#METHOD_ID method.
RECEIVER#METHOD_ID is a method to get next token. It must ‘yield’ the token, which format is [TOKEN-SYMBOL, VALUE].
Starts the parser. init
is a data accumulator and is passed to the next event handler (as of Enumerable#inject
).
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.