utils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParsedRequestAuthenticationContextKey = parsedRequestAuthenticationContextType{}
View Source
var ParsedRequestBodyContextKey = parsedRequestBodyContextType{}
View Source
var ParsedRequestHeaderContextKey = parsedRequestHeaderContextType{}
View Source
var ParsedRequestUrlContextKey = parsedRequestUrlContextType{}

Functions

func GetNonZeroParsedRequestBody

func GetNonZeroParsedRequestBody[T comparable](ctx context.Context) (T, error)

func GetNonZeroParsedRequestHeaders

func GetNonZeroParsedRequestHeaders[T comparable](ctx context.Context) (T, error)

func GetNonZeroParsedRequestUrl

func GetNonZeroParsedRequestUrl[T comparable](ctx context.Context) (T, error)

func GetParsedRequestAuthentication

func GetParsedRequestAuthentication[T any](ctx context.Context) (T, error)

func GetParsedRequestBody

func GetParsedRequestBody[T any](ctx context.Context) (T, error)

func GetParsedRequestHeaders

func GetParsedRequestHeaders[T any](ctx context.Context) (T, error)

func GetParsedRequestUrl

func GetParsedRequestUrl[T any](ctx context.Context) (T, error)

func GetServerContextValue

func GetServerContextValue[T any](ctx context.Context, key any) (T, *response_error.ResponseError)

func GetServerNonZeroContextValue

func GetServerNonZeroContextValue[T comparable](ctx context.Context, key any) (T, *response_error.ResponseError)

func GetServerNonZeroParsedRequestAuthentication

func GetServerNonZeroParsedRequestAuthentication[T comparable](ctx context.Context) (T, *response_error.ResponseError)

func GetServerNonZeroParsedRequestBody

func GetServerNonZeroParsedRequestBody[T comparable](ctx context.Context) (T, *response_error.ResponseError)

func GetServerNonZeroParsedRequestHeaders

func GetServerNonZeroParsedRequestHeaders[T comparable](ctx context.Context) (T, *response_error.ResponseError)

func GetServerNonZeroParsedRequestUrl

func GetServerNonZeroParsedRequestUrl[T comparable](ctx context.Context) (T, *response_error.ResponseError)

func GetServerParsedRequestBody

func GetServerParsedRequestBody[T any](ctx context.Context) (T, *response_error.ResponseError)

func GetServerParsedRequestHeaders

func GetServerParsedRequestHeaders[T any](ctx context.Context) (T, *response_error.ResponseError)

func MakeStaticContentHeaders

func MakeStaticContentHeaders(contentType, cacheControl, etag, lastModified string) []*response.HeaderEntry

Types

This section is empty.

Directories

Path Synopsis
body_parser module
json/schema module
json
schema module
jwt module

Jump to

Keyboard shortcuts

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