Returns true
if field 'Transfer-Encoding'
exists and has value 'chunked'
, false
otherwise; see Transfer-Encoding response header:
res = Net::HTTP.get_response(hostname, '/todos/1') res['Transfer-Encoding'] # => "chunked" res.chunked? # => true
returns a charset parameter in Content-Type field. It is downcased for canonicalization.
If charset parameter is not given but a block is given, the block is called and its result is returned. It can be used to guess charset.
If charset parameter and block is not given, nil is returned except text type. In that case, “utf-8” is returned as defined by RFC6838 4.2.1
Create a new Location
object
Create a new ArrayPatternNode
node
Create a new AssocSplatNode
node
Create a new CallOperatorWriteNode
node
Create a new CapturePatternNode
node
Create a new ClassVariableOperatorWriteNode
node
Create a new ConstantOperatorWriteNode
node
Create a new ConstantPathAndWriteNode
node
Create a new ConstantPathNode
node
Create a new ConstantPathOrWriteNode
node
Create a new ConstantPathTargetNode
node
Create a new ConstantPathWriteNode
node
Create a new DefNode
node
Create a new EmbeddedStatementsNode
node
Create a new FindPatternNode
node
Create a new FloatNode
node
Create a new GlobalVariableOperatorWriteNode
node
Create a new HashPatternNode
node
Create a new IfNode
node
Create a new ImaginaryNode
node
Create a new IndexOperatorWriteNode
node