-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add accessor methods to outgoing-request and outgoing-response
Taken from wasmtime b663ccf9e1eef4b0a1e5637cd6f86d8d42783403 This change has two purposes: 1. adding the accessors enables treating the resource's representation of all state as canonical, instead of requiring a component to retain a copy of all state contained in the resource. 1. Adding mutators for all state supports use cases where it's required to change a request's/response's state after writing to its body. This is in particular the case when implementing preexisting systems or specifications, such as the WHATWG fetch spec used in JavaScript environments. Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
- Loading branch information
1 parent
896dac2
commit c7412a4
Showing
1 changed file
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters