first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* Base class for helpers that read data from HTTP request/response objects and convert them
* into the telemetry contract objects.
*/
declare abstract class RequestParser {
protected method: string;
protected url: string;
protected startTime: number;
protected duration: number;
protected statusCode: number;
protected properties: {
[key: string]: string;
};
/**
* Gets a url parsed out from request options
*/
getUrl(): string;
protected RequestParser(): void;
protected _setStatus(status: number, error: Error | string): void;
protected _isSuccess(): boolean;
}
export = RequestParser;