mux

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpoint

func GetEndpoint(
	endpointSpecificationMap map[string]map[string]*muxTypes.Endpoint,
	request *http.Request,
) (*muxTypes.Endpoint, map[string]*muxTypes.Endpoint, *muxTypesResponseError.ResponseError)

func HandleFetchMetadata

func HandleFetchMetadata(requestHeader http.Header, method string) *muxTypesResponseError.ResponseError

func HandleRateLimiting

func HandleRateLimiting(
	rateLimitingConfiguration *muxTypesRateLimiting.RateLimitingConfiguration,
	request *http.Request,
) *muxTypesResponseError.ResponseError

func ObtainIsCached

func ObtainIsCached(staticContent *muxTypesStaticContent.StaticContent, requestHeader http.Header) (bool, *muxTypesResponseError.ResponseError)

func ObtainRequestBody

func ObtainRequestBody(
	ctx context.Context,
	contentLength int64,
	bodyReader io.ReadCloser,
	maxBytes int64,
) ([]byte, *muxTypesResponseError.ResponseError)

func ObtainStaticContentResponse

func ObtainStaticContentResponse(
	staticContent *muxTypesStaticContent.StaticContent,
	isCached bool,
	requestHeader http.Header,
	acceptEncoding *altshiftHttpTypes.AcceptEncoding,
) (*muxTypesResponse.Response, *muxTypesResponseError.ResponseError)

func ValidateContentLength

func ValidateContentLength(allowEmpty bool, requestHeader http.Header) *muxTypesResponseError.ResponseError

func ValidateContentType

func ValidateContentType(expectedContentType string, requestHeader http.Header) *muxTypesResponseError.ResponseError

Types

This section is empty.

Jump to

Keyboard shortcuts

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