Skip to content
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

[http server]: use similar API for host and origin filtering as WS #473

Merged
merged 5 commits into from
Oct 11, 2021

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Sep 16, 2021

Example usage here

The code or API is similar to what we have in WS server but I prefer to do an attempt to merge them in another PR.
Mostly the differences is how we get back the headers in soketto vs hyper I think.

};
self.allow_hosts = AllowHosts::Only(allow_hosts);
/// Reset default to allow all hosts.
pub fn allow_all_hosts(mut self) -> Self {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not needed but added it because the WS server has it

Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

http-server/src/access_control/mod.rs Outdated Show resolved Hide resolved
Co-authored-by: David <dvdplm@gmail.com>
@niklasad1 niklasad1 changed the title [http server]: use similar API for host and origin filtering [http server]: use similar API for host and origin filtering as WS Oct 5, 2021
@niklasad1 niklasad1 marked this pull request as ready for review October 5, 2021 13:28
@dvdplm dvdplm merged commit 7a9ebc9 into master Oct 11, 2021
@dvdplm dvdplm deleted the na-http-server-unify-acl-builder branch October 11, 2021 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants