Changeset 2122 for draft-ietf-httpbis/latest
- Timestamp:
- 14/01/13 02:39:35 (10 years ago)
- Location:
- draft-ietf-httpbis/latest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
draft-ietf-httpbis/latest/p2-semantics.html
r2121 r2122 2382 2382 <tr> 2383 2383 <td class="left">505</td> 2384 <td class="left">HTTP Version not supported</td>2384 <td class="left">HTTP Version Not Supported</td> 2385 2385 <td class="left"><a href="#status.505" id="rfc.xref.status.505.1" title="505 HTTP Version Not Supported">Section 6.6.6</a></td> 2386 2386 </tr> … … 2394 2394 <p id="rfc.section.6.2.p.1">The <dfn>1xx (Informational)</dfn> class of status code indicates an interim response for communicating connection status or request progress prior to completing 2395 2395 the requested action and sending a final response. All 1xx responses consist of only the status-line and optional header fields, 2396 and thus are terminated by the empty line at the end of the header block. There are no required header fields for this class 2397 of status code. Since HTTP/1.0 did not define any 1xx status codes, servers <em class="bcp14">MUST NOT</em> send a 1xx response to an HTTP/1.0 client except under experimental conditions. 2398 </p> 2399 <p id="rfc.section.6.2.p.2">A client <em class="bcp14">MUST</em> be prepared to accept one or more 1xx status responses prior to a final response, even if the client does not expect a <a href="#status.100" class="smpl">100 (Continue)</a> status message. A user agent <em class="bcp14">MAY</em> ignore unexpected 1xx status responses. 2396 and thus are terminated by the empty line at the end of the header block. Since HTTP/1.0 did not define any 1xx status codes, 2397 servers <em class="bcp14">MUST NOT</em> send a 1xx response to an HTTP/1.0 client except under experimental conditions. 2398 </p> 2399 <p id="rfc.section.6.2.p.2">A client <em class="bcp14">MUST</em> be prepared to accept one or more 1xx status responses prior to a final response, even if the client does not expect one. 2400 A user agent <em class="bcp14">MAY</em> ignore unexpected 1xx status responses. 2400 2401 </p> 2401 2402 <p id="rfc.section.6.2.p.3">Proxies <em class="bcp14">MUST</em> forward 1xx responses, unless the connection between the proxy and its client has been closed, or unless the proxy itself … … 2414 2415 <div id="rfc.iref.72"></div> 2415 2416 <h3 id="rfc.section.6.2.2"><a href="#rfc.section.6.2.2">6.2.2</a> <a id="status.101" href="#status.101">101 Switching Protocols</a></h3> 2416 <p id="rfc.section.6.2.2.p.1">The <dfn>101 (Switching Protocols)</dfn> status code indicates that the server understands and is willing to comply with the client's request, via the <a href="p1-messaging.html#header.upgrade" class="smpl">Upgrade</a> header field (<a href="p1-messaging.html#header.upgrade" title="Upgrade">Section 6.7</a> of <a href="#Part1" id="rfc.xref.Part1.22"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>), for a change in the application protocol being used on this connection. The server will switch to the protocol(s) indicated2417 within the response's Upgrade header field immediately after theempty line that terminates the 101 response.2417 <p id="rfc.section.6.2.2.p.1">The <dfn>101 (Switching Protocols)</dfn> status code indicates that the server understands and is willing to comply with the client's request, via the <a href="p1-messaging.html#header.upgrade" class="smpl">Upgrade</a> header field (<a href="p1-messaging.html#header.upgrade" title="Upgrade">Section 6.7</a> of <a href="#Part1" id="rfc.xref.Part1.22"><cite title="Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing">[Part1]</cite></a>), for a change in the application protocol being used on this connection. The server <em class="bcp14">MUST</em> generate an Upgrade header field in the response that indicates which protocol(s) will be switched to immediately after the 2418 empty line that terminates the 101 response. 2418 2419 </p> 2419 2420 <p id="rfc.section.6.2.2.p.2">It is assumed that the server will only agree to switch protocols when it is advantageous to do so. For example, switching … … 3137 3138 </pre><p id="rfc.section.7.4.1.p.3">Example of use:</p> 3138 3139 <div id="rfc.figure.u.60"></div><pre class="text"> Allow: GET, HEAD, PUT 3139 </pre><p id="rfc.section.7.4.1.p.5">The actual set of allowed methods is defined by the origin server at the time of each request.</p> 3140 <p id="rfc.section.7.4.1.p.6">A proxy <em class="bcp14">MUST NOT</em> modify the Allow header field — it does not need to understand all the methods specified in order to handle them according 3140 </pre><p id="rfc.section.7.4.1.p.5">The actual set of allowed methods is defined by the origin server at the time of each request. An origin server <em class="bcp14">MUST</em> generate an Allow field in a <a href="#status.405" class="smpl">405 (Method Not Allowed)</a> response and <em class="bcp14">MAY</em> do so in any other response. An empty Allow field value indicates that the resource allows no methods, which might occur in 3141 a 405 response if the resource has been temporarily disabled by configuration. 3142 </p> 3143 <p id="rfc.section.7.4.1.p.6">A proxy <em class="bcp14">MUST NOT</em> modify the Allow header field — it does not need to understand all of the indicated methods in order to handle them according 3141 3144 to the generic message handling rules. 3142 3145 </p> -
draft-ietf-httpbis/latest/p2-semantics.xml
r2121 r2122 2655 2655 <c>503</c> <c>Service Unavailable</c> <c><xref target="status.503"/></c> 2656 2656 <c>504</c> <c>Gateway Time-out</c> <c><xref target="status.504"/></c> 2657 <c>505</c> <c>HTTP Version not supported</c> <c><xref target="status.505"/></c>2657 <c>505</c> <c>HTTP Version Not Supported</c> <c><xref target="status.505"/></c> 2658 2658 </texttable> 2659 2659 <t> … … 2674 2674 All 1xx responses consist of only the status-line and optional header 2675 2675 fields, and thus are terminated by the empty line at the end of the header 2676 block. There are no required header fields for this class of status code.2676 block. 2677 2677 Since HTTP/1.0 did not define any 1xx status codes, servers &MUST-NOT; send 2678 2678 a 1xx response to an HTTP/1.0 client except under experimental conditions. … … 2680 2680 <t> 2681 2681 A client &MUST; be prepared to accept one or more 1xx status responses 2682 prior to a final response, even if the client does not expect a 2683 <x:ref>100 (Continue)</x:ref> status message. 2682 prior to a final response, even if the client does not expect one. 2684 2683 A user agent &MAY; ignore unexpected 1xx status responses. 2685 2684 </t> … … 2723 2722 server understands and is willing to comply with the client's request, 2724 2723 via the <x:ref>Upgrade</x:ref> header field (&header-upgrade;), for 2725 a change in the application protocol being used on this connection. The2726 server will switch to the protocol(s) indicated within the response's2727 Upgrade header field immediately after the empty line that terminates the2728 101 response.2724 a change in the application protocol being used on this connection. 2725 The server &MUST; generate an Upgrade header field in the response that 2726 indicates which protocol(s) will be switched to immediately after the empty 2727 line that terminates the 101 response. 2729 2728 </t> 2730 2729 <t> … … 4042 4041 <t> 4043 4042 The "Allow" header field lists the set of methods advertised as 4044 supported by the <x:ref>target resource</x:ref>. The purpose of this field is strictly to 4045 inform the recipient of valid request methods associated with the resource. 4043 supported by the <x:ref>target resource</x:ref>. The purpose of this field 4044 is strictly to inform the recipient of valid request methods associated 4045 with the resource. 4046 4046 </t> 4047 4047 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Allow"/> … … 4056 4056 <t> 4057 4057 The actual set of allowed methods is defined by the origin server at the 4058 time of each request. 4059 </t> 4060 <t> 4061 A proxy &MUST-NOT; modify the Allow header field — it does not need to 4062 understand all the methods specified in order to handle them according to 4063 the generic message handling rules. 4058 time of each request. An origin server &MUST; generate an Allow field in a 4059 <x:ref>405 (Method Not Allowed)</x:ref> response and &MAY; do so in any 4060 other response. An empty Allow field value indicates that the resource 4061 allows no methods, which might occur in a 405 response if the resource has 4062 been temporarily disabled by configuration. 4063 </t> 4064 <t> 4065 A proxy &MUST-NOT; modify the Allow header field — it does not need 4066 to understand all of the indicated methods in order to handle them 4067 according to the generic message handling rules. 4064 4068 </t> 4065 4069 </section>
Note: See TracChangeset
for help on using the changeset viewer.