Net::HTTPResponse class of PicoRuby

Singleton methods

new

Net::HTTPResponse.new(?String? code, ?String? message, ?String? http_version) -> HTTPResponse

parse

Net::HTTPResponse.parse(String response_string) -> HTTPResponse

Instance methods

[]

instance.[](String key) -> String?

[]=

instance.[]=(String key, String value) -> String

client_error?

instance.client_error?() -> boolish

code_type

instance.code_type() -> singleton(HTTPResponse)?

error?

instance.error?() -> boolish

get_fields

instance.get_fields(String key) -> Array[String | nil]

read_body

instance.read_body() ?{ (String) -> void } -> String?

redirect?

instance.redirect?() -> boolish

server_error?

instance.server_error?() -> boolish

success?

instance.success?() -> boolish

to_s

instance.to_s() -> String

Attr accessors

code (reader)

instance.code -> String?

message (reader)

instance.message -> String?

http_version (reader)

instance.http_version -> String?

header (accessor)

instance.header -> Hash[String, String]

body (accessor)

instance.body -> String?
Tags: class