Skip to main content

GCPHandler

@h4ad/serverless-adapter > GCPHandler

(class) GCPHandler

The class that implements a handler for GCP Http Functions

Signature:

export declare class GCPHandler<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 Http Cloud Function here

(constructor)

Default Constructor

Signature:

constructor(name: string);

Parameters

ParameterTypeDescription
namestringThe name of this function, should be the during deploy.

(method) getHandler

Signature:

getHandler(app: TApp, framework: FrameworkContract<TApp>): (req: IncomingMessage, res: ServerResponse) => void | Promise<void>;

Parameters

ParameterTypeDescription
appTApp
frameworkFrameworkContract <TApp>

Returns:

(req: IncomingMessage, res: ServerResponse) => void | Promise<void>

(property) name

Signature:

protected readonly name: string;