The Functions Framework invokes an HTTP function with an Express-flavoured request that extends
Node's IncomingMessage. On top of the standard stream, it exposes the already-parsed body and
the untouched rawBody buffer (the framework consumes the request stream before the handler runs),
which is why the normalizer reads them instead of re-reading the drained socket.
Type Declaration
Optionalbody?: unknown
The body parsed by the Functions Framework body-parser (JSON, urlencoded, text).
OptionalrawBody?: Buffer
The untouched request payload captured by the framework (webhook signatures, multipart, etc.).
The GCP Cloud Functions HTTP request object.
The Functions Framework invokes an HTTP function with an Express-flavoured request that extends Node's
IncomingMessage. On top of the standard stream, it exposes the already-parsedbodyand the untouchedrawBodybuffer (the framework consumes the request stream before the handler runs), which is why the normalizer reads them instead of re-reading the drained socket.