1 | import { HttpResponse } from "@smithy/types";
|
2 | export { Endpoint, HeaderBag, HttpHandlerOptions, HttpMessage, HttpRequest, HttpResponse, QueryParameterBag, } from "@smithy/types";
|
3 | /**
|
4 | * @public
|
5 | *
|
6 | * A collection of key/value pairs with case-insensitive keys.
|
7 | */
|
8 | export interface Headers extends Map<string, string> {
|
9 | /**
|
10 | * Returns a new instance of Headers with the specified header set to the
|
11 | * provided value. Does not modify the original Headers instance.
|
12 | *
|
13 | * @param headerName - The name of the header to add or overwrite
|
14 | * @param headerValue - The value to which the header should be set
|
15 | */
|
16 | withHeader(headerName: string, headerValue: string): Headers;
|
17 | /**
|
18 | * Returns a new instance of Headers without the specified header. Does not
|
19 | * modify the original Headers instance.
|
20 | *
|
21 | * @param headerName - The name of the header to remove
|
22 | */
|
23 | withoutHeader(headerName: string): Headers;
|
24 | }
|
25 | /**
|
26 | * @public
|
27 | *
|
28 | * Represents HTTP message whose body has been resolved to a string. This is
|
29 | * used in parsing http message.
|
30 | */
|
31 | export interface ResolvedHttpResponse extends HttpResponse {
|
32 | body: string;
|
33 | }
|