import { HttpResponseUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";
Constructors
new
HttpResponseUtil(jsonUtil: JsonUtil, localisationService: LocalisationService)Properties
protected
jsonUtil: JsonUtilprotected
localisationService: LocalisationServiceMethods
protected
clearString(s: string): anyAdd an error into the 'warnings' array of the client response message
emptyArrayResponse(): IGetBodyResponseData<any[]>
emptyResponse(): IGetBodyResponseData<string>
getBody<T>(): IGetBodyResponseData<T>
data: T,
err?: number,
errmsg?: any,
sanitize?: boolean,
Game client needs server responses in a particular format
getUnclearedBody(): string
data: any,
err?: number,
errmsg?: any,
noBody(data: any): any
Return passed in data as JSON string