struct Runcobo::RequestInfo

Overview

Effective request metadata, resolved once from the transport and trusted headers.

Defined in:

runcobo/request_info.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(request : HTTP::Request, *, peer : Socket::IPAddress | Nil = nil, local : Socket::IPAddress | Nil = nil, secure : Bool = false, proxy_config : ProxyConfig = ProxyConfig.new) #

[View source]

Instance Method Detail

def base_url : String #

[View source]
def host : String #

[View source]
def host_with_port : String #

[View source]
def port : Int32 #

[View source]
def protocol : String #

[View source]
def remote_ip : String | Nil #

[View source]
def scheme : String #

[View source]
def ssl? : Bool #

[View source]