Skip to content

Documentation


Documentation / @blazetrails/rack / Sendfile

Class: Sendfile ​

Defined in: packages/rack/lib/sendfile.ts:12

Constructors ​

Constructor ​

new Sendfile(app, variation?, mappings?): Sendfile

Defined in: packages/rack/lib/sendfile.ts:17

Parameters ​

ParameterType
appRackApp | { call: RackApp; }
variation?string | null
mappings?[string, string][]

Returns ​

Sendfile

Methods ​

call() ​

call(env): Promise<[number, RackHeaders, any]>

Defined in: packages/rack/lib/sendfile.ts:30

Parameters ​

ParameterType
envRecord<string, any>

Returns ​

Promise<[number, RackHeaders, any]>