package.dist.src.config.middleware.example-async-middleware.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
import { Middleware, MiddlewareRequestHandler } from './middleware';
import { MomentoLoggerFactory } from '../..';
/**
* This class provides an example of how users can implement a Middleware that
* requires async calls.
*/
export declare class ExampleAsyncMiddleware implements Middleware {
private readonly logger;
constructor(loggerFactory: MomentoLoggerFactory);
onNewRequest(): MiddlewareRequestHandler;
}