elliottt opened PR #7451 from elliottt:trevor/validation-error-type
to bytecodealliance:main
:
Rename the
header-error
variant tovalidation-error
, and use that variant as the error value for all setters ofoutbound-request
andoutbound-response
. This ensures that we have the opportunity to validate outbound request and response values before they're given to their respective handlers.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
elliottt requested alexcrichton for a review on PR #7451.
elliottt requested wasmtime-core-reviewers for a review on PR #7451.
elliottt requested pchickey for a review on PR #7451.
elliottt updated PR #7451.
elliottt edited PR #7451:
Rename the
header-error
variant tovalidation-error
, and use that variant as the error value for all setters ofoutbound-request
andoutbound-response
. This ensures that we have the opportunity to validate outbound request and response values before they're given to their respective handlers.Validation for uri components is done by using
http:uri::Builder
with only that value, ensuring that we don't raise an error. Validation for method and scheme is only done for theOther
cases, and is accomplished by using the fallible parsers for each type from thehttp
crate.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
elliottt updated PR #7451.
elliottt updated PR #7451.
elliottt updated PR #7451.
elliottt updated PR #7451.
pchickey submitted PR review.
pchickey submitted PR review.
pchickey created PR review comment:
Only feedback on this PR is that the wit docs here should describe that the set fails iff the value given is syntactically invalid.
pchickey edited PR review comment.
elliottt updated PR #7451.
elliottt updated PR #7451.
pchickey submitted PR review.
pchickey has enabled auto merge for PR #7451.
elliottt updated PR #7451.
elliottt requested fitzgen for a review on PR #7451.
elliottt requested wasmtime-compiler-reviewers for a review on PR #7451.
elliottt requested wasmtime-default-reviewers for a review on PR #7451.
elliottt updated PR #7451.
github-merge-queue[bot] updated PR #7451.
elliottt updated PR #7451.
pchickey has enabled auto merge for PR #7451.
pchickey merged PR #7451.
Last updated: Dec 23 2024 at 12:05 UTC