Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default404Handler ¶
Types ¶
type Request ¶
type Response ¶
type Response struct { HTTPVersion string StatusCode uint16 ReasonPhrase string Headers map[string]string Body string }
func (*Response) EnsureReady ¶
Checks if all required fields are set to send out the response: `HTTPVersion`, `StatusCode`, and `ReasonPhrase`.
type Server ¶
type Server struct { Name string Network string Address string // contains filtered or unexported fields }
func NewTCPServer ¶
func (*Server) ListenAndServe ¶
func (*Server) SetHandler ¶
Click to show internal directories.
Click to hide internal directories.