HttpTriggerV4AdapterOptions
@h4ad/serverless-adapter > HttpTriggerV4AdapterOptions
(interface) HttpTriggerV4AdapterOptions
The options to customize the HttpTriggerV4Adapter
Signature:
export interface HttpTriggerV4AdapterOptions
(property) shouldReturnBodyAsUint8Array
If you are handling/returning binary data and getting ERR_CONTENT_LENGTH_MISMATCH, you can turn pass a function to decide if the body should be returned as Uint8Array instead, this will likely solve your issue. You need to correctly configure binary settings to be able to have the body converted to Uint8Array since we only convert base64 data, not any other format.
More context at https://github.com/H4ad/serverless-adapter/issues/87
Signature:
shouldReturnBodyAsUint8Array?: (headers: Record<string, string>) => boolean;
(property) stripBasePath
Strip base path for custom domains
Signature:
stripBasePath?: string;