Skip to main content

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

ParameterTypeDescription
optionshttps.HttpsOptions | undefined(Optional)

(method) getHandler

Signature:

getHandler(app: TApp, framework: FrameworkContract<TApp>): FirebaseHttpHandler;

Parameters

ParameterTypeDescription
appTApp
frameworkFrameworkContract <TApp>

Returns:

FirebaseHttpHandler

(method) onRequestWithOptions

Wrapper method around onRequest for better testability

Signature:

protected onRequestWithOptions(options: https.HttpsOptions, callback: ReturnType<HttpFirebaseV2Handler<TApp>['onRequestCallback']>): FirebaseHttpHandler;

Parameters

ParameterTypeDescription
optionshttps.HttpsOptions
callbackReturnType<HttpFirebaseV2Handler <TApp>['onRequestCallback']>

Returns:

FirebaseHttpHandler

(property) options

Signature:

protected readonly options?: https.HttpsOptions | undefined;