Documentation ¶
Index ¶
- func JSON(w http.ResponseWriter, status int, data any) error
- func JSONWithHeaders(w http.ResponseWriter, status int, data any, headers http.Header) error
- func NamedTemplate(w http.ResponseWriter, status int, data any, templateName string, ...) error
- func NamedTemplateWithHeaders(w http.ResponseWriter, status int, data any, headers http.Header, ...) error
- func Page(w http.ResponseWriter, status int, data any, pagePath string) error
- func PageWithHeaders(w http.ResponseWriter, status int, data any, headers http.Header, ...) error
- type MetricsResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONWithHeaders ¶
func NamedTemplate ¶
func PageWithHeaders ¶
Types ¶
type MetricsResponseWriter ¶
type MetricsResponseWriter struct { StatusCode int BytesCount int // contains filtered or unexported fields }
func NewMetricsResponseWriter ¶
func NewMetricsResponseWriter(w http.ResponseWriter) *MetricsResponseWriter
func (*MetricsResponseWriter) Header ¶
func (mw *MetricsResponseWriter) Header() http.Header
func (*MetricsResponseWriter) Unwrap ¶
func (mw *MetricsResponseWriter) Unwrap() http.ResponseWriter
func (*MetricsResponseWriter) WriteHeader ¶
func (mw *MetricsResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.