-
Notifications
You must be signed in to change notification settings - Fork 8
feat: implement wasi:http
#58
Conversation
f038d56 to
d1f5188
Compare
29f307d to
90b9354
Compare
ea0f439 to
c62ba73
Compare
crates/test-programs/src/bin/http_0_3_outbound_request_content_length.rs
Outdated
Show resolved
Hide resolved
782fce1 to
926d272
Compare
|
Added None of this validation is enforced on requests/responses originating in the host (default HTTP client will enforce that incoming response body is compliant with cc @pchickey |
b23067a to
9b2b834
Compare
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Joel Dice <[email protected]>
Dropping the `Watch` itself just decrements the reference count, which won't actually drop the `StreamWriter` until the promise completes. The result was that some of the HTTP tests were hanging. This was my mistake, sorry! Signed-off-by: Joel Dice <[email protected]>
As discussed with @pchickey See also bytecodealliance/wasmtime#7538 (comment) and following discussion Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
This should make #100 more debuggable by turning it in to an assertion failure in `OutgoingRequestBody::poll_frame`. It seems to be doing a zero-length read (presumably by accident), but I haven't traced it further than that, yet. Signed-off-by: Joel Dice <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Personally, I think defaulting to `/` if no path with query is set would be the expected behavior, but wasip2 contained tests explicitly testing against that behavior, so I disagree and commit Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
Signed-off-by: Roman Volosatovs <[email protected]>
#105 Signed-off-by: Roman Volosatovs <[email protected]>
Implementation of WebAssembly/wasi-http#162
With Wasmtime binary built from this PR with this patch applied: b007214 (from #60), I have the complete round trip working using components in https://github.com/rvolosatovs/p3-http-test