-
Notifications
You must be signed in to change notification settings - Fork 36
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
Can we add scheme
, host
, port
to the elli request record type?
#28
Comments
I can do this tonight. |
So I looked into this and it appears that {absoluteURI branch never used.
The last one is more tricky - Host field can have host AND port. We could probably add this too under |
If we are just matching on the output of erlang:decode_packet/3 i think it simplifies this considerably |
@deadtrickster I have submitted a patch to add the required changes, but I can't get it to pass your build system... please help review. Thanks. |
So #29 won't get the job done without a pretty thorough overhaul. I'm wondering, what's your need to add these fields to |
That's fine. It just seemed that elli was needlessly discarding metadata from the request. I felt it would be easy to capture, hence the PR i submitted. It does require changes to |
Actually I think these fields are rather useful (think routing, validation, etc). I just forgot about #29 :-) |
Ok. I've got a WIP stashed locally. |
I can push if you want to have a look. |
please do! |
I've made Edit: I'm off to bed. Feel free to take over the branch. |
@yurrriq what happened with this? |
Missed that comment.. I'm not sure what happened with this either. |
Please can we add
scheme
,host
,port
metadata to elli request record type (:req)?Why is it being discarded here? https://github.com/elli-lib/elli/blob/develop/src/elli_http.erl#L688
The text was updated successfully, but these errors were encountered: