UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

10 lines 498 B
import type { RequestHandler } from 'express'; /** * Builds an express middleware checking the content-type header * returning 415 if the header is not either `application/json` or in the array * passed into the function of valid content-types * @param {String} acceptedContentTypes * @returns {function(Request, Response, NextFunction): void} */ export default function requireContentType(...acceptedContentTypes: string[]): RequestHandler; //# sourceMappingURL=content_type_checker.d.ts.map