Skip to main content

DummyAdapter

@h4ad/serverless-adapter > DummyAdapter

(class) DummyAdapter

The class that represents a dummy adapter that does nothing and can be used by the cloud that doesn't use adapters.

Signature:

export declare class DummyAdapter implements AdapterContract<any, any, void> 

Implements: AdapterContract <any, any, void>

(method) canHandle

Signature:

canHandle(): boolean;

Returns:

boolean

(method) getAdapterName

Signature:

getAdapterName(): string;

Returns:

string

(method) getRequest

Signature:

getRequest(): AdapterRequest;

Returns:

AdapterRequest

(method) getResponse

Signature:

getResponse(): IEmptyResponse;

Returns:

IEmptyResponse

(method) onErrorWhileForwarding

Signature:

onErrorWhileForwarding(props: OnErrorProps<any, void>): void;

Parameters

ParameterTypeDescription
propsOnErrorProps <any, void>

Returns:

void