class AcceptHeaderMiddleware
extends Middleware
import { AcceptHeaderMiddleware } from "https://deno.land/x/drash@v3.0.0-beta.2/src/modules/middleware/AcceptHeader/mod.ts";
Constructors
new
AcceptHeaderMiddleware(options?: Options)Construct the middleware that handles Accept headers.
Methods
protected
handleHeaders(context: Context)protected
handleIfAcceptHeaderMissing(request: Request)protected
sendResponse(context: Context)