Skip to content

P3 Request body seems unexpected #99

@itowlson

Description

@itowlson

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:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions