I'm trying to read through the docs and looking at the typesenter link description here:
export interface APIGatewayProxyEvent {
body: string | null;
headers: { [name: string]: string };
multiValueHeaders: { [name: string]: string[] };
httpMethod: string;
isBase64Encoded: boolean;
path: string;
pathParameters: { [name: string]: string } | null;
queryStringParameters: { [name: string]: string } | null;
multiValueQueryStringParameters: { [name: string]: string[] } | null;
stageVariables: { [name: string]: string } | null;
requestContext: APIGatewayEventRequestContext;
resource: string;
}
I can't tell how to get the full URL of the initial request. Can someone shed some light here perhaps?
path will give you everything except the domain itself. You should be able to get the domain from the Host entry in multiValueHeaders or headers.