Module saphir::server[][src]

Server implementation and default runtime Server is the centerpiece on saphir, it contains everything to handle request and dispatch it the proper router

SAFETY NOTICE

To allow controller and middleware to respond future with static lifetime, the server stack is put inside a static variable. This is needed for safety, but also means that only one saphir server can run at a time

Structs

Builder
ListenerBuilder
ListenerConfig
Server

Constants

DEFAULT_LISTENER_IFACE

Default listener ip addr is AnyAddr (0.0.0.0)

DEFAULT_REQUEST_TIMEOUT_MS

Default time for request handling is 30 seconds

DEFAULT_SERVER_NAME

Functions

inject_raw

Inject a http request into saphir