#61 ✓resolved
Matt Todd

Conditionally send body content as application/json

Reported by Matt Todd | August 28th, 2008 @ 05:11 PM | in Release 0.5.4

Refer to #60 for the original idea.

Clients should be able to choose to send data as application/json instead of application/x-www-form-urlencoded but since this is also not supported by Rack natively a new middleware should be made to handle Content-Type of application/json. (Other solutions should be considered as well, though.)

Comments and changes to this ticket

  • Matt Todd

    Matt Todd September 12th, 2008 @ 02:58 AM

    Wrote the Rack middleware to process JSON formatted POST bodies.

    Now to make the client be switchable.

    Question: should the client warn that the Halcyon app runner should be changed to include the Rack::PostBodyContentTypeParsers middleware to handle the application/json POST body processing?

  • Matt Todd

    Matt Todd September 12th, 2008 @ 05:03 AM

    • State changed from “new” to “resolved”

    (from [238909fc750e790d26a7bb4266b3a01679c1b59d]) Set it up to have simpler expansion to support SSL etc. Made the Halcyon::Client support having the Content-TType specified for the client and formatting the body appropriately. Also expanded specs. [#61 state:resolved] http://github.com/mtodd/halcyon/...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages