Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Conditionally send body content as application/json

#61

Refer to #60 Content-Type is set to application/json when it should be application/x-www-f... 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.)

Reported by Matt Todd · August 28th, 2008 @ 05:11 PM

State: resolved
Milestone: Release 0.5.4
Assigned to: Matt Todd Matt Todd

Activity

  1. Matt Todd
    Matt Todd

    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?

    September 12th, 2008 @ 02:58 AM

  2. Matt Todd
    Matt Todd
    • 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 Conditionally send body content as application/json state:resolved] http://github.com/mtodd/halcyon/...

    September 12th, 2008 @ 05:03 AM

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.