-
Notifications
You must be signed in to change notification settings - Fork 31
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
Question about content_types_accepted #81
Labels
Comments
Additional details. I get a |
The code looks like it should be ok at first glance. I'm hacking up a
sample project to see what i can find out, initially I suspect the
parsing / matching of those content type strings might be an issue.
Do you have the full http request / response available? e.g. from curl
using verbose switch.
That should include the web machine trace of which decision nodes it passed
through.
…On Mon, Jan 8, 2018 at 10:39 AM, Hadil G. Sabbagh, Ph. D. < ***@***.***> wrote:
Additional details. I get a 415 -- Unsupported media type when trying to
use PUT with the activate case above. I checked RFC 7231 and it seems that
this is legal syntax.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKbuUG2jIUQLr-Y3bscBEkmqx5cICx1ks5tIVWagaJpZM4RV1L->
.
|
I have found a workaround for this, by parsing the content header from Cohttp independently of the webmachine code. It is not parsing the string after the ;.
I will get you a curl output when I have a free moment to test it again.
Thanks,
Hadil
… On Jan 8, 2018, at 4:08 PM, Tim McGilchrist ***@***.***> wrote:
The code looks like it should be ok at first glance. I'm hacking up a
sample project to see what i can find out, initially I suspect the
parsing / matching of those content type strings might be an issue.
Do you have the full http request / response available? e.g. from curl
using verbose switch.
That should include the web machine trace of which decision nodes it passed
through.
On Mon, Jan 8, 2018 at 10:39 AM, Hadil G. Sabbagh, Ph. D. <
***@***.***> wrote:
> Additional details. I get a 415 -- Unsupported media type when trying to
> use PUT with the activate case above. I checked RFC 7231 and it seems that
> this is legal syntax.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#81 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAKbuUG2jIUQLr-Y3bscBEkmqx5cICx1ks5tIVWagaJpZM4RV1L->
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#81 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEQ-XO5JZBPOnMR-uUUaf4v1GbmApeIZks5tIqAHgaJpZM4RV1L->.
|
Webmachine indeed does not take content type parameters into account when performing dispatch. In the short term that's something that should be done manually in the handler for the content type. Not sure if it'd make sense to add that functionality, but I don't see any huge technical hurdle in doing it.
…-Spiros E.
i sent this from my Phone.
On Jan 8, 2018, at 6:16 PM, Hadil G. Sabbagh, Ph. D. ***@***.***> wrote:
I have found a workaround for this, by parsing the content header from Cohttp independently of the webmachine code. It is not parsing the string after the ;.
I will get you a curl output when I have a free moment to test it again.
Thanks,
Hadil
> On Jan 8, 2018, at 4:08 PM, Tim McGilchrist ***@***.***> wrote:
>
> The code looks like it should be ok at first glance. I'm hacking up a
> sample project to see what i can find out, initially I suspect the
> parsing / matching of those content type strings might be an issue.
>
> Do you have the full http request / response available? e.g. from curl
> using verbose switch.
> That should include the web machine trace of which decision nodes it passed
> through.
>
>
>
> On Mon, Jan 8, 2018 at 10:39 AM, Hadil G. Sabbagh, Ph. D. <
> ***@***.***> wrote:
>
> > Additional details. I get a 415 -- Unsupported media type when trying to
> > use PUT with the activate case above. I checked RFC 7231 and it seems that
> > this is legal syntax.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <#81 (comment)>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/AAKbuUG2jIUQLr-Y3bscBEkmqx5cICx1ks5tIVWagaJpZM4RV1L->
> > .
> >
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#81 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEQ-XO5JZBPOnMR-uUUaf4v1GbmApeIZks5tIqAHgaJpZM4RV1L->.
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have need for the following code:
The purpose is to implement a RESTful interface for CQRS. I need to dispatch on the different domain types independently of the verb used.
Any suggestions? I am new to webmachine, so I am sure I am missing something...
Thanks,
Hadil
The text was updated successfully, but these errors were encountered: