File size: 666 Bytes
31e8457
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export type FailureReason = "TooManyHeaders" | "HeaderTooLarge" | "InvalidHeaderName" | "InvalidHeaderValue";
export interface Continue {
    readonly _tag: "Continue";
}
export interface Failure {
    readonly _tag: "Failure";
    readonly reason: FailureReason;
    readonly headers: Record<string, string | Array<string>>;
}
export interface Headers {
    readonly _tag: "Headers";
    readonly headers: Record<string, string | Array<string>>;
    readonly endPosition: number;
}
export type ReturnValue = Continue | Failure | Headers;
export declare const make: () => (chunk: Uint8Array, start: number) => ReturnValue;
//# sourceMappingURL=HeadersParser.d.ts.map