Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { Bytes([]byte) error Error(...any) error Next() error Redirect(int, string) error Request() Request Response() Response Status(int) Context String(string) error }
Interface for a request and its response.
type Request ¶
type Request interface { Header(string) string Host() string Method() string Path() string Scheme() string Param(string) string Body() []byte }
Interface for HTTP requests.
type Response ¶
type Response interface { io.Writer io.StringWriter Body() []byte Header(string) string SetHeader(key string, value string) SetBody([]byte) SetStatus(int) Status() int }
Interface for an HTTP response.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.