BinarySettingsFunction
@h4ad/serverless-adapter > BinarySettingsFunction
(interface) BinarySettingsFunction
The interface representing the binary settings implementation by function
Signature:
export interface BinarySettingsFunction
(property) isBinary
This property can be a function that receives the response headers and returns whether that response should be encoded as binary. Otherwise, you can specify not to treat any response as binary by putting false in this property.
Signature:
isBinary: ((headers: Record<string, string | string[] | undefined>) => boolean) | false;
Remarks
Setting this property prevents the contentTypes and contentEncodings properties from being used.