in src/main/scala/com/gu/invoicing/invoice/Lambda.scala [16:24]
def handleRequest(input: APIGatewayProxyRequestEvent, context: Context): APIGatewayProxyResponseEvent = {
headerOrThrow(input, "x-identity-id")
.pipe { InvoicesInput }
.tap { info[InvoicesInput] }
.pipe { program }
.pipe { Await.result(_, Inf) }
.tap { info[InvoicesOutput] }
.pipe { output => okResponse(write(output)) }
}