-
Notifications
You must be signed in to change notification settings - Fork 40
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
Fix socket #235
Fix socket #235
Conversation
…to use tuple of host, port, and scheme
…to use tuple of host, port, and scheme
I'm moving stuff to URI and also reworking the uri parsing to be a bit more thorough. Do you know what uri.request_uri is supposed to represent? Not sure exactly what request_uri is. It seems to encompass the path, the query string, and potential fragments? I just changed it to be the full request uri, as in the original uri, since that made more sense given the name. But some guidance would help! |
@thatstoasty |
Gotcha, I'm working on the URI parsing right now so I'll fix the request_uri so it's back to what it was soon 👍🏾 |
@izo0x90 @saviorand Please check out the changes! I was also working on updating the URI logic by switching to a byte reader instead of allocating new strings by splitting the initial uri provided. I tried to combine our changes, the tests should be passing now. There's a bit of duplication in the constants, so let me know if you want me to switch to using the Query param constants instead of the |
@saviorand Also thoughts on the client assuming port 80 if not specified? Or expect a port to be specified? |
@thatstoasty port 80 definitely makes sense, later when we add SSL support might also do 443 |
@thatstoasty awesome changes making things more performant 🔥 |
Thanks for the feedback! I removed the constants struct to use existing ones, and set the port to default to 80 if http and 443 if https. |
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.
Let's mergeee
No description provided.