HttpFirebaseV2Handler
@h4ad/serverless-adapter > HttpFirebaseV2Handler
(class) HttpFirebaseV2Handler
The class that implements a handler for Firebase Https Events
Signature:
export declare class HttpFirebaseV2Handler<TApp> extends RawRequest<TApp> implements HandlerContract<TApp, never, never, never, void, void | Promise<void>>
Extends: RawRequest <TApp>
Implements: HandlerContract <TApp, never, never, never, void, void | Promise<void>>
Remarks
Read more about Https Events here
(constructor)
Construtor padrão
Signature:
constructor(options?: https.HttpsOptions | undefined);
Parameters
Parameter | Type | Description |
---|---|---|
options | https.HttpsOptions | undefined | (Optional) |
(method) getHandler
Signature:
getHandler(app: TApp, framework: FrameworkContract<TApp>): FirebaseHttpHandler;
Parameters
Parameter | Type | Description |
---|---|---|
app | TApp | |
framework | FrameworkContract <TApp> |
Returns:
(method) onRequestWithOptions
Wrapper method around onRequest for better testability
Signature:
protected onRequestWithOptions(options: https.HttpsOptions, callback: ReturnType<HttpFirebaseV2Handler<TApp>['onRequestCallback']>): FirebaseHttpHandler;
Parameters
Parameter | Type | Description |
---|---|---|
options | https.HttpsOptions | |
callback | ReturnType<HttpFirebaseV2Handler <TApp>['onRequestCallback']> |
Returns:
(property) options
Signature:
protected readonly options?: https.HttpsOptions | undefined;