class NGHTTP::HTTPConnecter

Included Modules

Defined in:

nghttp/handlers/http_connecter.cr

Constructors

Instance Method Summary

Instance methods inherited from module NGHTTP::Handler

call(env : HTTPEnv) call, call_next(env : HTTPEnv) call_next, handle_transport(env : HTTPEnv) handle_transport, next : Handler | Nil next, next=(next __arg0 : Handler | Nil) next=, previous : Handler | Nil previous, previous=(previous : Handler | Nil) previous=, verify_requirements verify_requirements

Constructor methods inherited from module NGHTTP::Handler

new new

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def call(env) #

For requests, ensure a connection exists. For responses, parse the response headers from the server.


[View source]
def ensure_transport(env) #

Send this request out to be filled. If a proxy has been set via config, parse that proxy url and attach it to this request. We do this evenf or requests with explicitly set transports, in case those transports faile (cache has deleted file). Todo: possibly remove proxy search when transport has been explicitly selected. If a transport has been configured via int_config, use that transport directly. Otherwise, submit this request to the connection manager to get a transport. Send this request to the transport and process the response.


[View source]
def setup_socket_debug(env) #

[View source]