Returns a string representation of self
:
Net::HTTP.new(hostname).inspect # => "#<Net::HTTP jsonplaceholder.typicode.com:80 open=false>"
Sends an UNLOCK request to the server; returns an instance of a subclass of Net::HTTPResponse
.
The request is based on the Net::HTTP::Unlock
object created from string path
, string body
, and initial headers hash initheader
.
data = '{"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}' http = Net::HTTP.new(hostname) http.unlock('/todos/1', data)
Returns a string representation of self
:
Net::HTTP.new(hostname).inspect # => "#<Net::HTTP jsonplaceholder.typicode.com:80 open=false>"
Sends an UNLOCK request to the server; returns an instance of a subclass of Net::HTTPResponse
.
The request is based on the Net::HTTP::Unlock
object created from string path
, string body
, and initial headers hash initheader
.
data = '{"userId": 1, "id": 1, "title": "delectus aut autem", "completed": false}' http = Net::HTTP.new(hostname) http.unlock('/todos/1', data)
Returns a string representation of the request:
Net::HTTP::Post.new(uri).inspect # => "#<Net::HTTP::Post POST>"
Mirrors the C extension’s StringQuery::constant?
method.
Whether or not this string is a valid constant name.
Returns the else clause of the case match node. This method is deprecated in favor of else_clause.
Returns the else clause of the case node. This method is deprecated in favor of else_clause.
Returns the subsequent if/elsif/else clause of the if node. This method is deprecated in favor of subsequent.
Returns the subsequent rescue clause of the rescue node. This method is deprecated in favor of subsequent.
Returns the else clause of the unless node. This method is deprecated in favor of else_clause.
Returns a string representation of this location.
Returns a string representation of this comment.
Returns a string representation of this comment.
Returns a string representation of this magic comment.
Returns a string representation of this error.
Returns a string representation of this warning.
Returns a string representation of this token.