midhttp

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package midhttp contains common types used in the downstream implementations of the middleware for net/http handlers.

Index

Constants

View Source
const RequestIdHeader = "X-Request-Id"

Variables

This section is empty.

Functions

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *autometricsResponseWriter

NewResponseWriter creates a new ResponseWriter that keeps track of the status code of the query for reporting purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL