Skip to content

wasi-http: make methods that read trailers return optional results #7275

@elliottt

Description

@elliottt

Currently the get method on future-trailers returns option<result<trailers, error>>, where reading no trailers in a request is indicated by the trailers result being empty. We should instead return option<result<option<trailers>, error>> so that we can indicate success, with no trailers.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions