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 additional fields to the Request objects #764

Merged
merged 1 commit into from Nov 18, 2016

Conversation

drewpc
Copy link
Collaborator

@drewpc drewpc commented Nov 17, 2016

Request objects available through this.getRequest() in middleware and elsewhere in the codebase provide access to the path and query portions of a URI (scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]). This PR incorporates changes to the client and server side request wrappers to return scheme, host, and "secure" (matches the ExpressJS request object) values. This does not address port, user, password, or fragment at this time. The client implementation uses window.location if available and falls back to returning null. The server implementation uses the ExpressJS request object.

…ess hostname, protocol, and secure options of the request. On the client side, it looks in the window.location variable for the info.
@gigabo gigabo added the enhancement New functionality. label Nov 18, 2016
@gigabo
Copy link
Contributor

gigabo commented Nov 18, 2016

Nice! This is a really useful improvement. Thanks @drewpc!

@gigabo gigabo merged commit 8e6b41b into redfin:master Nov 18, 2016
@drewpc drewpc deleted the patch-enhance-request-objects branch December 9, 2016 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants