Skip to main content

Module request

Module request 

Source
Expand description

Request-side streaming types — the request counterpart to ResponseChunk.

In streaming mode (stream_request_body) the HTTP plugin delivers the request body to PHP as a channel instead of buffering it. Two shapes:

  • RequestBody::Raw — opaque body bytes (folk_read / folk_read_all).
  • RequestBody::Parts — a parsed multipart/form-data stream (folk_next_part + folk_part_read), produced by a multer task in the plugin so PHP never sees boundary bytes.

Enums§

RequestBody
What feeds a worker’s request body in streaming mode.
RequestPart
One element of a streamed multipart/form-data request.