Skip to content

http: reuse inherent request/response types on the HTTP seam #104

Description

@mfw78

Problem. HttpClient::fetch is defined over the bindgen-generated Request/Response mirror types, which may duplicate shapes that already exist natively (the http crate's types, reqwest's, or wasi-http's).

Proposed. Check whether the seam should speak an inherent type (e.g. http::Request/http::Response) with conversion to the WIT mirror types confined to the glue, so future real backends implement against standard types.

Notes. Raised in review feedback on the component-seam PR: #99 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/httphttp fetch backend under the capability allowlistdxDeveloper experience is suffering.needs-designRequires thinking. No one has bandwidth.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions