misc

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeApproximateRequestSize

func ComputeApproximateRequestSize(r *http.Request) int

ComputeApproximateRequestSize for computing the http request size

func SanitizeCode

func SanitizeCode(s int) string

SanitizeCode for sanitizing http code If the wrapped http.Handler has not set a status code, i.e. the value is currently 0, santizeCode will return 200, for consistency with behavior in the stdlib.

func SanitizeMethod

func SanitizeMethod(m string) string

SanitizeMethod for sanitizing http request method function from prometheus promhttp package

Types

This section is empty.

Jump to

Keyboard shortcuts

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