Skip to content

P3 Response bodies for the rest of us #118

@itowlson

Description

@itowlson

In Spin 3.x, you could put a Vec<u8> in a Response body. Now, as far as I can tell, you have to do a FullBody::new(Bytes::from(...)) before it will let you.

This is non-obvious and is 28 extra characters, do you think I am made of keyboards.

(I know the young people are all about streaming bodies but sometimes it's useful, particularly for docs purposes, to just dump a blob in there, declare victory, and go home.)

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