I am writing a P3 handler using spin_sdk::http_wasip3::Request (not the IncomingRequest type used in the P3 double-echo example).
When I use the .body() method, I get a... thing... (&IncomingBody<Request>) which does not seem to let me access the body, but does let me access, say, the headers:
How do I get a body out of an IncomingBody<Request>? My specific interest is in processing the streaming body so I'm ultimately looking for a Stream or AsyncRead or something like that.
I am writing a P3 handler using
spin_sdk::http_wasip3::Request(not theIncomingRequesttype used in the P3 double-echo example).When I use the
.body()method, I get a... thing... (&IncomingBody<Request>) which does not seem to let me access the body, but does let me access, say, the headers:How do I get a body out of an
IncomingBody<Request>? My specific interest is in processing the streaming body so I'm ultimately looking for aStreamorAsyncReador something like that.