-
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 <rvolosatovs@riseup.net>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
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 <joel.dice@fermyon.com>
As discussed with @pchickey See also bytecodealliance/wasmtime#7538 (comment) and following discussion Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
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 <joel.dice@fermyon.com>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
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 <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
#105 Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
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