- postJson(url: string, bodyData: object, ok?: ((txt: string, httpStatus?: number, serverTime?: Date) => void), failed?: ((errInfo: string, httpStatus?: number, serverTime?: Date) => void), timeout?: number): void
-
Parameters
-
url: string
-
bodyData: object
-
Optional
ok: ((txt: string, httpStatus?: number, serverTime?: Date) => void)
-
- (txt: string, httpStatus?: number, serverTime?: Date): void
-
Parameters
-
txt: string
-
Optional
httpStatus: number
-
Optional
serverTime: Date
Returns void
-
Optional
failed: ((errInfo: string, httpStatus?: number, serverTime?: Date) => void)
-
- (errInfo: string, httpStatus?: number, serverTime?: Date): void
-
Parameters
-
errInfo: string
-
Optional
httpStatus: number
-
Optional
serverTime: Date
Returns void
-
timeout: number = ...
Returns void
Sends json to the server as POST request and expects text in return