Documentation
¶
Index ¶
- func GetEndpoint(endpointSpecificationMap map[string]map[string]*muxTypes.Endpoint, ...) (*muxTypes.Endpoint, map[string]*muxTypes.Endpoint, ...)
- func HandleFetchMetadata(requestHeader http.Header, method string) *muxTypesResponseError.ResponseError
- func HandleRateLimiting(rateLimitingConfiguration *muxTypesRateLimiting.RateLimitingConfiguration, ...) *muxTypesResponseError.ResponseError
- func ObtainIsCached(staticContent *muxTypesStaticContent.StaticContent, requestHeader http.Header) (bool, *muxTypesResponseError.ResponseError)
- func ObtainRequestBody(ctx context.Context, contentLength int64, bodyReader io.ReadCloser, ...) ([]byte, *muxTypesResponseError.ResponseError)
- func ObtainStaticContentResponse(staticContent *muxTypesStaticContent.StaticContent, isCached bool, ...) (*muxTypesResponse.Response, *muxTypesResponseError.ResponseError)
- func ValidateContentLength(allowEmpty bool, requestHeader http.Header) *muxTypesResponseError.ResponseError
- func ValidateContentType(expectedContentType string, requestHeader http.Header) *muxTypesResponseError.ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpoint ¶
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.
Click to show internal directories.
Click to hide internal directories.