-
Notifications
You must be signed in to change notification settings - Fork 0
Hyper As Base for Rest Adapter #142
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
Merged
+421
−1,030
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b140b2c
drop: removed http crate
raphael-goetz ea7a415
drop: removed http crate
raphael-goetz 8109b51
feat: started to work on swtiching from http crate to hyper
raphael-goetz c2ceddc
feat: made header to list
raphael-goetz 5a88acf
feat: added logs for execution
raphael-goetz a52ac4e
ref: cargo fmt
raphael-goetz f921b1a
Update adapter/rest/src/route.rs
raphael-goetz ed79258
Update adapter/rest/src/main.rs
raphael-goetz 18342df
Update adapter/rest/src/route.rs
raphael-goetz c70fc5d
Update crates/base/src/store.rs
raphael-goetz 24fc621
Update adapter/rest/src/main.rs
raphael-goetz a113543
feat: implemented shutdown
raphael-goetz 79caae5
Update adapter/rest/src/main.rs
raphael-goetz ca8d4df
Update adapter/rest/src/main.rs
raphael-goetz 7100a85
Update adapter/rest/src/main.rs
raphael-goetz 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| use base::traits::LoadConfig; | ||
| use code0_flow::flow_config::env_with_default; | ||
|
|
||
| #[derive(Clone)] | ||
| pub struct HttpServerConfig { | ||
| pub port: u16, | ||
| pub host: String, | ||
| } | ||
|
|
||
| impl LoadConfig for HttpServerConfig { | ||
| fn load() -> Self { | ||
| Self { | ||
| port: env_with_default("HTTP_SERVER_PORT", 8080), | ||
| host: env_with_default("HTTP_SERVER_HOST", String::from("127.0.0.1")), | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.