Individual Submission | J. Snell |
Internet-Draft | February 2008 |
Intended status: Informational | |
Expires: August 2008 |
By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress”.¶
The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.¶
The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.¶
This Internet-Draft will expire in August 2008.¶
This specification defines a new HTTP header that can be used by a client to request that certain behaviors be implemented by a server while processing a request.¶
This specification defines a new HTTP header that can be used by a client to request that certain behaviors be implemented by a server while processing a request.¶
The Prefer request-header is used to indicate that particular server behaviors are preferred, but not required, by the client. Prefer is similar in nature to the Expect header defined by [RFC2616] with the exception that servers are allowed to ignore a clients stated preferences.¶
Prefer = "Prefer" ":" 1#preference preference = "return-no-content" | "return-content" | "return-status" | preference-extension preference-extension = token [ "=" ( token | quoted-string ) *prefer-params ] prefer-params = ";" token [ "=" ( token | quoted-string ) ]
This header is defined with an extensible syntax to allow for future values included in the Registry of Preferences (see Section 7.1). A server that does not recognize or is unable to comply with particular preference values in the Prefer header of a request MUST ignore those values and MUST NOT stop processing or signal an error.¶
Comparison of preference values is case-insensitive for unquoted tokens and is case-sensitive for quoted-string preference-extensions.¶
An HTTP proxy MAY choose to honor a preference even if the origin server does not. The Prefer request-header MUST be forwarded by the proxy if the request is forwarded.¶
The Preference-Applied response header MAY be included in the response message to indicate which Prefer request header values were honored by the server and applied to the request.¶
Prefer = "Preference-Applied" ":" 1#preference
The "return-no-content" token indicates that the client prefers that the server not include an entity in the response to a successful request. Typically, such responses would use the 204 No Content status code as defined in Section 10.2.5 of [RFC2616], but other status codes can be used as appropriate.¶
The "return-content" token indicates that the client prefers that the server include an entity representing the current state of the resource in the response to a successful request.¶
The "return-status" token indicates that the client prefers that the server include an entity describing the status of the request in the response to a successful request.¶
Header field name: Prefer Applicable Protocol: HTTP Status: standard Author/Change controller: IETF Specification document: this specification
This registry is maintained by IANA and initially contains three values: "return-no-content", "return-content" and "return-status". New assignments are subjects to IESG approval, as outlined in [RFC2434]. Requests should be made by email to IANA, which will then forward the request to the IESG, requesting approval. The request should use the following template:¶
The author greatfully acknowledges the input from the IETF HTTP mailing list on the development of this document.¶
TODO¶
The RFC Editor should remove this section and the Changes section.¶
We need to determine how new preference codes are created/registered¶
Copyright © The IETF Trust (2008).¶
This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.¶
This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.¶
The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.¶
Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.¶
The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.¶