goreq

package module
v0.0.0-...-6985faf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

README

goreq

Request parsing middleware for Golang HTTP Routers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequest

func GetRequest[T any](ctx context.Context) (*T, bool)

GetRequest retrieves the request parameters from the context, if any.

func RequestParse

func RequestParse[T any](next http.Handler) http.Handler

RequestParse adds the request parameters defined by T into the request context. The request parameters can be retrieved using GetRequest()

Types

This section is empty.

Jump to

Keyboard shortcuts

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