UNPKG

890 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class RequestLogEntry {
4 constructor(url, method, description, body) {
5 this.url = url;
6 this.method = method;
7 this.description = description;
8 this.body = body;
9 }
10}
11exports.RequestLogEntry = RequestLogEntry;
12// tslint:disable-next-line:max-classes-per-file
13class ResponseLogEntry {
14 constructor(status, body, contentType, contentLocation) {
15 this.status = status;
16 this.body = body;
17 this.contentType = contentType;
18 this.contentLocation = contentLocation;
19 }
20}
21exports.ResponseLogEntry = ResponseLogEntry;
22// tslint:disable-next-line:max-classes-per-file
23class RequestResponseLogEntry {
24 constructor(request, response) {
25 this.request = request;
26 this.response = response;
27 }
28}
29exports.default = RequestResponseLogEntry;