modulepackage
0.0.0-20241111125357-cc17f6ccc1ce
Repository: https://github.com/connect-sdk/middleware.git
Documentation: pkg.go.dev
# README
middleware
The repository provides a convenient mechanism for filtering HTTP requests.
# Functions
Bytes converts the given string representation of a byte sequence into a slice of bytes A bytes sequence is encoded in URL-safe base64 without padding.
GetRequestURL returns the request URL.
NewFormDecoder returns a new decoder.
PopulateFieldFromPath sets a value in a nested Protobuf structure.
No description provided by the author
WithCors creates a new Cors handler with passed options.
WithLogger set up the http logger.
WithRedirector represents an method redirctor.
WithTracer represents an operation telemetry.
WithTransformer transforms the input.
# Structs
CorsConfig represents the CORS options.
FormDecoder decodes URL values into a proto message.
ResponseWriter repersents a response writer.