-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lib/runtime): Implement ext_offchain_http_request_add_header_version_1
host function
#1994
Merged
EclesioMeloJunior
merged 47 commits into
development
from
eclesio/offchain-req-add-headers
Nov 20, 2021
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
2899a29
feat: implement offchain http host functions
EclesioMeloJunior 8f7a581
chore: decoding Result<i16, ()>
EclesioMeloJunior 4d6167f
chore: adjust result encoding/decoding
EclesioMeloJunior faa5752
chore: add export comment on Get
EclesioMeloJunior e08300e
chore: change to map and update test wasm
EclesioMeloJunior 70e6351
chore: use request id buffer
EclesioMeloJunior ad8c0bb
chore: change to NewHTTPSet
EclesioMeloJunior 5606599
chore: add export comment
EclesioMeloJunior f2ca718
Merge branch 'development' into eclesio/offchain-http
EclesioMeloJunior 81c0fb9
chore: use pkg/scale to encode Result to wasm memory
EclesioMeloJunior 6da5ad8
Merge branch 'eclesio/offchain-http' of github.com:ChainSafe/gossamer…
EclesioMeloJunior fb21f11
chore: update naming and fix lint warns
EclesioMeloJunior 881fc51
Merge branch 'development' into eclesio/offchain-http
EclesioMeloJunior 7444590
Merge branch 'development' into eclesio/offchain-http
EclesioMeloJunior 8896ae5
Merge branch 'development' into eclesio/offchain-http
EclesioMeloJunior ee372c4
chore: use buffer.put when remove http request
EclesioMeloJunior 78bfd0b
chore: add more comments
EclesioMeloJunior 42ff50e
chore: add unit tests
EclesioMeloJunior 13d540a
chore: fix misspelling
EclesioMeloJunior 60a1f11
chore: fix scale marshal to encode Result instead of Option<Result>
EclesioMeloJunior 4cd379f
chore: ignore uneeded error
EclesioMeloJunior f1130ad
chore: fix unused params
EclesioMeloJunior 5f980ab
chore: cannot remove unused params
EclesioMeloJunior c8913d2
chore: ignore deepsource errors
EclesioMeloJunior fcb5da9
chore: add parallel to wasmer tests
EclesioMeloJunior 9d2b7c5
chore: implementing offchain http request add header
EclesioMeloJunior dd89472
chore: remove dereferencing
EclesioMeloJunior 8624e09
chore: fix param compatibility
EclesioMeloJunior 427c183
chore: embed mutex iunto httpset struct
EclesioMeloJunior b791f35
chore: fix request field name
EclesioMeloJunior 750caa9
chore: update the hoost polkadot test runtime location
EclesioMeloJunior 6cdef2b
Merge branch 'eclesio/offchain-http' into eclesio/offchain-req-add-he…
EclesioMeloJunior c856a87
chore: use an updated host runtime test
EclesioMeloJunior 85c4703
chore: fix lint warns
EclesioMeloJunior d203860
chore: rename OffchainRequest to Request
EclesioMeloJunior c8463f8
Merge branch 'development' into eclesio/offchain-req-add-headers
EclesioMeloJunior 5353927
Merge branch 'development' into eclesio/offchain-req-add-headers
EclesioMeloJunior 281ed22
chore: update host commit hash
EclesioMeloJunior a7e74d3
Merge branch 'development' into eclesio/offchain-req-add-headers
EclesioMeloJunior 18a2cc8
chore: update log
EclesioMeloJunior 2e57583
chore: resolve conflicts
EclesioMeloJunior d02a434
chore: address comments
EclesioMeloJunior eee9136
chore: adjust the error flow
EclesioMeloJunior 9410059
chore: fix result return
EclesioMeloJunior a4441a2
chore: update the host runtime link
EclesioMeloJunior 92b9f49
chore: use request context to store bool values
EclesioMeloJunior 75af512
chore: fix the lint issues
EclesioMeloJunior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use http.Request's context to store those two booleans? Just to reduce the Go API. Although it might be not worth it depending how many times we check these values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe we can get improvements storing these values on
http.Request's context
the reason we had these values is to avoid operations over already ongoing or finalized HTTP callsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not for improvements except to use
*http.Request
directly. Most http routers store stuff in the http.Request's context, I think it would fit nicely, so we would have one less type to manage ourselves.Example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@qdm12, done!