All files / src requestResponseLogEntry.ts

100% Statements 13/13
100% Branches 0/0
100% Functions 3/3
100% Lines 13/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 391x             1310x 1310x 1310x 1310x         1x             1310x 1310x 1310x 1310x         1x       1314x 1314x      
export class RequestLogEntry {
    public body?: string;
    public description: string;
    public jsonBody?: any;
    public method: string;
    public url: string;
    public constructor(url: string, method: string, description: string, body?: string) {
        this.url = url;
        this.method = method;
        this.description = description;
        this.body = body;
    }
}
 
// tslint:disable-next-line:max-classes-per-file
export class ResponseLogEntry {
    public body?: string;
    public contentType?: string;
    public contentLocation?: string;
    public jsonBody?: any;
    public status: number;
    public constructor(status: number, body?: string, contentType?: string, contentLocation?: string) {
        this.status = status;
        this.body = body;
        this.contentType = contentType;
        this.contentLocation = contentLocation;
    }
}
 
// tslint:disable-next-line:max-classes-per-file
export default class RequestResponseLogEntry {
    public request: RequestLogEntry;
    public response: ResponseLogEntry;
    public constructor(request: RequestLogEntry, response: ResponseLogEntry) {
        this.request = request;
        this.response = response;
    }
}