class NGHTTP::HTTPEnv
- NGHTTP::HTTPEnv
- Reference
- Object
Defined in:
nghttp/http_env.crConstructors
Instance Method Summary
- #close(force_close_connection = false)
- #config : NGHTTP::Config
-
#connection
creates a new config, potentially fo ra sub-request
- #connection=(connection : NGHTTP::Transport | Nil)
- #connection? : NGHTTP::Transport?
- #int_config : NGHTTP::IntConfig
- #request
- #request=(request : Nil | NGHTTP::Request)
- #request?
- #response
- #response=(response : Nil | NGHTTP::Response)
- #response?
- #session : NGHTTP::Session
- #state : NGHTTP::HTTPEnv::State
- #state=(state : NGHTTP::HTTPEnv::State)
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>