Results for: "pstore"

No documentation available
No documentation available
No documentation available

Sends the given request req to the server; forms the response into a Net::HTTPResponse object.

The given req must be an instance of a subclass of Net::HTTPRequest. Argument body should be given only if needed for the request.

With no block given, returns the response object:

http = Net::HTTP.new(hostname)

req = Net::HTTP::Get.new('/todos/1')
http.request(req)
# => #<Net::HTTPOK 200 OK readbody=true>

req = Net::HTTP::Post.new('/todos')
http.request(req, 'xyzzy')
# => #<Net::HTTPCreated 201 Created readbody=true>

With a block given, calls the block with the response and returns the response:

req = Net::HTTP::Get.new('/todos/1')
http.request(req) do |res|
  p res
end # => #<Net::HTTPOK 200 OK readbody=true>

Output:

#<Net::HTTPOK 200 OK readbody=false>

Sends the given request req to the server; forms the response into a Net::HTTPResponse object.

The given req must be an instance of a subclass of Net::HTTPRequest. Argument body should be given only if needed for the request.

With no block given, returns the response object:

http = Net::HTTP.new(hostname)

req = Net::HTTP::Get.new('/todos/1')
http.request(req)
# => #<Net::HTTPOK 200 OK readbody=true>

req = Net::HTTP::Post.new('/todos')
http.request(req, 'xyzzy')
# => #<Net::HTTPCreated 201 Created readbody=true>

With a block given, calls the block with the response and returns the response:

req = Net::HTTP::Get.new('/todos/1')
http.request(req) do |res|
  p res
end # => #<Net::HTTPOK 200 OK readbody=true>

Output:

#<Net::HTTPOK 200 OK readbody=false>

def operator: () -> String

def operator: () -> String

Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.

def operator: () -> String

def operator: () -> String

Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.

def operator: () -> String

def operator: () -> String

Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.

def operator: () -> String

def operator: () -> String

Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.

def operator: () -> String

def operator: () -> String

Returns the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator.

Register a listener for one or more events.

def register: (Listener, *Symbol) -> void

def operator: () -> String

def operator: () -> String

def operator: () -> String?

def operator: () -> String

Search took: 2ms  ·  Total Results: 4418