Configuration options for dumping YAML
.
This handler will capture an event and record the event. Recorder
events are available vial Psych::Handlers::Recorder#events
.
For example:
recorder = Psych::Handlers::Recorder.new parser = Psych::Parser.new recorder parser.parse '--- foo' recorder.events # => [list of events] # Replay the events emitter = Psych::Emitter.new $stdout recorder.events.each do |m, args| emitter.send m, *args end
Psych::JSON::TreeBuilder
is an event based AST builder. Events are sent to an instance of Psych::JSON::TreeBuilder
and a JSON
AST is constructed.
Creates binary representations of a SecBufferDesc structure, including the SecBuffer contained inside.
Base class of errors that occur when processing GZIP files.
Raised when gzip file footer is not found.
Raised when the CRC checksum recorded in gzip file footer is not equivalent to the CRC checksum of the actual uncompressed data.
Raised when the data length recorded in the gzip file footer is not equivalent to the length of the actual uncompressed data.
Raised when you try to write to a read-only buffer, or resize an external buffer.
Raised if you try to access a buffer slice which no longer references a valid memory range of the underlying source.
Raised if the mask given to a binary operation is invalid, e.g. zero length or overlaps the target buffer.
Class for representing HTTP method GET:
require 'net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" req = Net::HTTP::Get.new(uri) # => #<Net::HTTP::Get GET> res = Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Properties:
Request body: optional.
Response body: yes.
Safe: yes.
Idempotent: yes.
Cacheable: yes.
Related:
Net::HTTP.get
: sends GET
request, returns response body.
Net::HTTP#get
: sends GET
request, returns response object.
Class for representing WebDAV method LOCK:
require 'net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" req = Net::HTTP::Lock.new(uri) # => #<Net::HTTP::Lock LOCK> res = Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Related:
Net::HTTP#lock
: sends LOCK
request, returns response object.
Class for representing WebDAV method UNLOCK:
require 'net/http' uri = URI('http://example.com') hostname = uri.hostname # => "example.com" req = Net::HTTP::Unlock.new(uri) # => #<Net::HTTP::Unlock UNLOCK> res = Net::HTTP.start(hostname) do |http| http.request(req) end
See Request Headers.
Related:
Net::HTTP#unlock
: sends UNLOCK
request, returns response object.
An error class raised when dynamic parts are found while computing a constant path’s full name. For example: Foo::Bar::Baz -> does not raise because all parts of the constant path are simple constants var::Bar::Baz -> raises because the first part of the constant path is a local variable
An error class raised when missing nodes are found while computing a constant path’s full name. For example:
-> raises because the constant path is missing the last part