Parsers : { urlencoded : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ; json : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ; text : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ; raw : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ; }
Type declaration urlencoded : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ( opts ? ) : ( ( req , res , next ) => void ) Parameters Optional
opts : bp.OptionsUrlencoded Returns ( ( req , res , next ) => void ) ( req , res , next ) : void Parameters req : SimpleHttpServerRequestInterface res : SimpleHttpServerResponseInterface next : SimpleHttpServerNextFunction Returns void json : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ( opts ? ) : ( ( req , res , next ) => void ) Parameters Optional
opts : bp.OptionsJson Returns ( ( req , res , next ) => void ) ( req , res , next ) : void Parameters req : SimpleHttpServerRequestInterface res : SimpleHttpServerResponseInterface next : SimpleHttpServerNextFunction Returns void text : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ( opts ? ) : ( ( req , res , next ) => void ) Parameters Optional
opts : bp.OptionsText Returns ( ( req , res , next ) => void ) ( req , res , next ) : void Parameters req : SimpleHttpServerRequestInterface res : SimpleHttpServerResponseInterface next : SimpleHttpServerNextFunction Returns void raw : ( ( opts ? ) => ( ( req , res , next ) => void ) ) ( opts ? ) : ( ( req , res , next ) => void ) Parameters Optional
opts : bp.Options Returns ( ( req , res , next ) => void ) ( req , res , next ) : void Parameters req : SimpleHttpServerRequestInterface res : SimpleHttpServerResponseInterface next : SimpleHttpServerNextFunction Returns void Defined in node_modules/.pnpm/@wymp+simple-http-server-express@0.9.0/node_modules/@wymp/simple-http-server-express/dist/index.d.ts:13
Body-Parser exports for convenience
Because these deal with low-level properties of the request, we need to create adapters for them to keep the interface simple. In this case, since it's assumed that we're using them with the express version of SimpleHttpRequestHandlerInterface, we feel it is safe to cast.