Versions in this module Expand all Collapse all v0 v0.2.0 Mar 6, 2024 v0.1.0 Feb 22, 2024 Changes in this version + func IsInternal(r *http.Request) bool + func IsProxied(r *http.Request) bool + func MethodNotAllowedHandler() http.HandlerFunc + func NotFoundHandler() http.HandlerFunc + func UnauthorizedHandler() http.HandlerFunc + type ClientWriter struct + func NewClientWriter(w http.ResponseWriter) *ClientWriter + func (c *ClientWriter) BytesWritten() uint64 + func (c *ClientWriter) IsHeaderWritten() bool + func (c *ClientWriter) SetContentType(contentType string) + func (c *ClientWriter) SetJsonContentType() + func (c *ClientWriter) SetStatus(status int) + func (c *ClientWriter) SetXmlContentType() + func (c *ClientWriter) StatusCode() int + func (c *ClientWriter) Write(p []byte) (bytes int, err error) + func (c *ClientWriter) WriteHeader(code int) + type ContentType string + const ContentTypeHTML + const ContentTypeJSON + const ContentTypePng + const ContentTypeText + const ContentTypeXML + func (c ContentType) IsIn(contentTypes ...ContentType) bool + func (c ContentType) String() string + type Message struct + Message string + func NewMessage(message string, args ...any) *Message + type RateLimiter interface + Allow func(key string) bool + func NewRateLimiter() RateLimiter