[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] RFC: CGI::Application::Plugin::REST



Timothy Appnel wrote:
> On 1/2/07, Michael Peters <suppressed> wrote:
> 
>> > As I said to him when we had our IRC conversation that day, the main
>> bit
>> > that is missing is dispatch based on MIME types.
>>
>> Well, it lacks being able to dispatch on HTTP request method too. I'm
>> confused
>> about the MIME types bit though. I don't seem to remember how they are
>> associated with REST.
> 
> The idea is that one end point and return a representation of itself
> in different formats based on the HTTP Accept header. This is referred
> to as content negotiation or "conneg" in REST parlance.

Ok, that makes sense and it's what happens now anyways, just not as frequently.
For instance mod_gzip uses those headers to decide whether or not to compress
the outgoing data.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.