srvutil

package
v0.0.0-...-15ca262 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseForm

func ParseForm(next http.Handler) http.Handler

ParseForm is a middleware that calls ParseForm before the handler is called.

func ProtoJSONURLDecoder

func ProtoJSONURLDecoder(urlParam string) hrt.Decoder

ProtoJSONURLDecoder returns a decoder that decodes a ProtoJSON blob from the URL parameter with the given name.

func Respond200

func Respond200(w http.ResponseWriter, r *http.Request)

Respond200 writes a 200 OK response to the writer.

func TryHandlers

func TryHandlers(handlers ...http.Handler) http.Handler

TryHandlers returns a handler that tries each handler in order until one returns a non-404 status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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