How to retrieve request date + timestamp in an Fn function

55 Views Asked by At

is there a way to obtain the date and timestamp when the request is received by Fn server before triggering the mapped function? It appears that HTTPGatewayContext.getInvocationContext().getRequestHeaders() contain an attribute Fn-Deadline, which seems to be request received (or start of function trigger) date and timestamp + timeout; I am hoping there is a simple way to obtain the date and timestamp when the request is received by Fn that I may have missed.

0

There are 0 best solutions below