@aws-amplify/core
Version:
Core category of aws-amplify
14 lines (13 loc) • 488 B
TypeScript
import { HttpRequest, HttpResponse } from '../../types/http';
import { Middleware } from '../../types/core';
export interface UserAgentOptions {
userAgentHeader?: string;
userAgentValue?: string;
}
/**
* Middleware injects user agent string to specified header(default to 'x-amz-user-agent'),
* if the header is not set already.
*
* TODO: incorporate new user agent design
*/
export declare const userAgentMiddleware: Middleware<HttpRequest, HttpResponse, UserAgentOptions>;