RESTful HTTP responses with Perl (or, how I learned to stop worrying and love RFC2616)
RESTful HTTP responses with Perl (or, how I learned to stop worrying and love RFC2616)
Di Joel Bernstein (joel) da London.pm
Data: giovedì 22 ottobre 2009 16:30
Durata: 20 minuti
Tipo di pubblico: Avanzato
Lingua: English
Etichette: http rest rfc2616
The HTTP RFC gives fantastic detail about how responses from a RESTful application should instruct a conforming user-agent to behave, and about the contexts in which different responses are appropriate. Yet many HTTP applications seem to know little more than "200 OK".
We can improve on this situation by encapsulating some of the logic embodied in the HTTP 1.1 RFC. The rationale being that the developer can think in terms closer to his application domain and a little further away from the underlying protocol, but while still being able to develop highly REST-compliant web APIs.
Seguito da: Tim Bunce, Stefano Tirabassi, Ferruccio Zamuner (ferz), Michele Beltrame (arthas), Emanuele Zeppieri (emazep), simotrone, Fabio Invernizzi (fabulus), Henry Snoek, lorenzo, Mona REMLAWI, menozero, Fernando Vezzosi (Bucciarati), Marco d'Itri (Md), michele bracci, Mathias Reitinger (mathias),