Open grqphical opened 4 months ago
Based on #2551
Adds a new middleware AllowContentType which restricts routes to only accepts requests with certain Content-Type header values.
AllowContentType
Content-Type
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
Accept
Based on #2551
Adds a new middleware
AllowContentType
which restricts routes to only accepts requests with certainContent-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