UNPKG

@thisismissem/adonisjs-respond-with

Version:

A small plugin for Adonis.js to make responding with different content-types easier.

11 lines (10 loc) 396 B
import { RespondWithConfig } from './types.js'; export declare class Negotiator { config: RespondWithConfig; private contentTypes; private handlerTypes; constructor(config: RespondWithConfig); getDefaultHandler(): string; getAcceptedTypes(matcherNames: string[]): string[]; getHandlerFromContentType(contentType: string, matcherNames: string[]): string | undefined; }