class Skeleton::Server

Defined in:

skeleton/server.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(handler : HTTP::Handler) #

[View source]
def address : Socket::IPAddress #

[View source]
def addresses : Array(Socket::Address) #

[View source]
def bind(socket : Socket::Server) : self #

[View source]
def bind(uri : URI) : self #

[View source]
def bind(uri : String) : self #

[View source]
def bind_tcp(host : String, port : Int32, reuse_port : Bool = false) #

[View source]
def bind_tcp(port : Int32, reuse_port : Bool = false) : self #

[View source]
def bind_tcp(ip_address : Socket::IPAddress, reuse_port : Bool = false) : self #

[View source]
def bind_tls(host : String, port : Int32, context : OpenSSL::SSL::Context::Server, reuse_port : Bool = false) : self #

[View source]
def bind_tls(address : Socket::IPAddress, context : OpenSSL::SSL::Context::Server) : self #

[View source]
def bind_tls(host : String, context : OpenSSL::SSL::Context::Server) #

[View source]
def bind_unix(path : String) : self #

[View source]
def bind_unix(uaddress : Socket::UNIXAddress) : self #

[View source]
def bind_unused_port(host : String = Socket::IPAddress::LOOPBACK, reuse_port : Bool = false) : self #

[View source]
def close #

[View source]
def closed? #

[View source]
def create #

[View source]
def each_address(&block : Socket::Address -> ) #

[View source]
def handlers : Array(HTTP::Handler) #

[View source]
def listen(port : Int32, reuse_port : Bool = false) #

[View source]
def listen(host : String, port : Int32, reuse_port : Bool = false) #

[View source]
def listen #

[View source]
def listening? #

[View source]
def max_headers_size #

[View source]
def max_headers_size=(size : Int32) #

[View source]
def max_request_line_size #

[View source]
def max_request_line_size=(size : Int32) #

[View source]
def server : HTTP::Server #

[View source]