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

Add path() method to server::Request #896

Closed
seanmonstar opened this issue Aug 22, 2016 · 0 comments
Closed

Add path() method to server::Request #896

seanmonstar opened this issue Aug 22, 2016 · 0 comments
Labels
A-server Area: server. E-easy Effort: easy. A task that would be a great starting point for a new contributor.
Milestone

Comments

@seanmonstar
Copy link
Member

fn path(&self) -> Option<&str>

It'd need to check for a query string in the AbsolutePath variant.

@seanmonstar seanmonstar added A-server Area: server. E-easy Effort: easy. A task that would be a great starting point for a new contributor. labels Aug 22, 2016
@seanmonstar seanmonstar added this to the 0.10 milestone Aug 22, 2016
seanmonstar pushed a commit that referenced this issue Aug 29, 2016
Closes #896 
Closes #897

BREAKING CHANGE: `RequestUri::AbsolutePath` variant is changed to a struct variant. Consider using `req.path()` or `req.query()` to get the relevant slice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-server Area: server. E-easy Effort: easy. A task that would be a great starting point for a new contributor.
Projects
None yet
Development

No branches or pull requests

1 participant