echo icon indicating copy to clipboard operation
echo copied to clipboard

Allow content type middleware

Open grqphical opened this issue 1 year ago • 0 comments

Based on #2551

Adds a new middleware AllowContentType which restricts routes to only accepts requests with certain Content-Type header values.

It's similar to the middleware of the same name available with Chi

The middleware also sets the Accept header field to the specified content types for all requests

grqphical avatar Jul 03 '24 02:07 grqphical