class AkiHttpListener
implements IHttpListener
import { AkiHttpListener } from "https://deno.land/x/sptaki@1.2.0/servers/http/mod.ts";
Constructors
new
AkiHttpListener(httpRouter: HttpRouter,
serializers: Serializer[],
logger: ILogger,
requestsLogger: ILogger,
jsonUtil: JsonUtil,
httpResponse: HttpResponseUtil,
localisationService: LocalisationService,
Properties
protected
httpResponse: HttpResponseUtilprotected
httpRouter: HttpRouterprotected
jsonUtil: JsonUtilprotected
localisationService: LocalisationServiceprotected
logger: ILoggerprotected
requestsLogger: ILoggerprotected
serializers: Serializer[]Methods
protected
getBodyInfo(body: Buffer, requestUrl?: any): anycanHandle(_: string, req: IncomingMessage): boolean
getResponse(): string
handle(): void
sendJson(): void
sendResponse(): void
Send http response to the client
sendZlibJson(): void