The matching of e.g. @httpHeader("cookie") is case-sensitive.
Aws_restJson1.ts
output: __HttpRequest,
...
const _c = "cookie"
...
const contents: any = map({
[_c]: [, output.headers[_c]],
});
Looking at the type definition of
export declare class HttpRequest implements HttpMessage, URI {
method: string;
protocol: string;
hostname: string;
port?: number;
path: string;
query: QueryParameterBag;
headers: HeaderBag;
HeaderBag defines
/**
* @public
*
* A mapping of header names to string values. Multiple values for the same
* header should be represented as a single string with values separated by
* `, `.
*
* Keys should be considered case insensitive, even if this is not enforced by a
* particular implementation. For example, given the following HeaderBag, where
* keys differ only in case:
*
* ```json
* {
* 'x-request-date': '2000-01-01T00:00:00Z',
* 'X-Request-Date': '2001-01-01T00:00:00Z'
* }
* ```
*
* The SDK may at any point during processing remove one of the object
* properties in favor of the other. The headers may or may not be combined, and
* the SDK will not deterministically select which header candidate to use.
*/
export type HeaderBag = Record<string, string>;
so it seems to be every accessor should assume any possible casing-combination.
The matching of e.g.
@httpHeader("cookie")is case-sensitive.Aws_restJson1.tsLooking at the type definition of
HeaderBag defines
so it seems to be every accessor should assume any possible casing-combination.