Return-Path:
The HTTP header fields follow the same generic format as
- * that given in Section 3.1 of RFC 822. Each header field consists
- * of a name followed by a colon (":") and the field value. Field names
- * are case-insensitive. The field value MAY be preceded by any amount
- * of LWS, though a single SP is preferred.
- *
- *
- * Some HTTP headers (such as the set-cookie header) have values that
- * can be decomposed into multiple elements. Such headers must be in the
- * following form:
- *
- * Any amount of white space is allowed between any part of the
- * header, element or param and is ignored. A missing value in any
- * element or param will be stored as the empty {@link String};
- * if the "=" is also missing null will be stored instead.
*
* @since 4.0
*/
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpMessage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpMessage.java?rev=1636721&r1=1636720&r2=1636721&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpMessage.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpMessage.java Tue Nov 4 20:04:23 2014
@@ -32,24 +32,6 @@ import java.util.Iterator;
/**
* HTTP messages consist of requests from client to server and responses
* from server to client.
- *
- * HTTP messages use the generic message format of RFC 822 for
- * transferring entities (the payload of the message). Both types
- * of message consist of a start-line, zero or more header fields
- * (also known as "headers"), an empty line (i.e., a line with nothing
- * preceding the CRLF) indicating the end of the header fields,
- * and possibly a message-body.
- *
- * message-header = field-name ":" [ field-value ]
- * field-name = token
- * field-value = *( field-content | LWS )
- * field-content = <the OCTETs making up the field-value
- * and consisting of either *TEXT or combinations
- * of token, separators, and quoted-string>
- *
+ * Represents an HTTP header field consisting of a field name and a field value..
*
* @since 4.0
*/
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HeaderElement.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HeaderElement.java?rev=1636721&r1=1636720&r2=1636721&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HeaderElement.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HeaderElement.java Tue Nov 4 20:04:23 2014
@@ -28,32 +28,8 @@
package org.apache.http;
/**
- * One element of an HTTP {@link Header header} value consisting of
+ * Represents an element of an HTTP {@link Header header} value consisting of
* a name / value pair and a number of optional name / value parameters.
- *
- * header = [ element ] *( "," [ element ] )
- * element = name [ "=" [ value ] ] *( ";" [ param ] )
- * param = name [ "=" [ value ] ]
- *
- * name = token
- * value = ( token | quoted-string )
- *
- * token = 1*<any char except "=", ",", ";", <"> and
- * white space>
- * quoted-string = <"> *( text | quoted-char ) <">
- * text = any char except <">
- * quoted-char = "\" char
- *
- *
- * HTTP-message = Request | Response ; HTTP/1.1 messages
- *
- *
- * generic-message = start-line
- * *(message-header CRLF)
- * CRLF
- * [ message-body ]
- * start-line = Request-Line | Status-Line
- *
*
* @since 4.0
*/
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpRequest.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpRequest.java?rev=1636721&r1=1636720&r2=1636721&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpRequest.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpRequest.java Tue Nov 4 20:04:23 2014
@@ -31,14 +31,6 @@ package org.apache.http;
* A request message from a client to a server includes, within the
* first line of that message, the method to be applied to the resource,
* the identifier of the resource, and the protocol version in use.
- *
- * Request = Request-Line
- * *(( general-header
- * | request-header
- * | entity-header ) CRLF)
- * CRLF
- * [ message-body ]
- *
*
* @since 4.0
*/
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpResponse.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpResponse.java?rev=1636721&r1=1636720&r2=1636721&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpResponse.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpResponse.java Tue Nov 4 20:04:23 2014
@@ -32,14 +32,6 @@ import java.util.Locale;
/**
* After receiving and interpreting a request message, a server responds
* with an HTTP response message.
- *
- * Response = Status-Line
- * *(( general-header
- * | response-header
- * | entity-header ) CRLF)
- * CRLF
- * [ message-body ]
- *
*
* @since 4.0
*/
Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpVersion.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpVersion.java?rev=1636721&r1=1636720&r2=1636721&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpVersion.java (original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/HttpVersion.java Tue Nov 4 20:04:23 2014
@@ -38,9 +38,6 @@ import org.apache.http.annotation.Immuta
* The version of an HTTP message is indicated by an HTTP-Version field
* in the first line of the message.
*
- * HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT - ** * @since 4.0 */ Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/NameValuePair.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/NameValuePair.java?rev=1636721&r1=1636720&r2=1636721&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/NameValuePair.java (original) +++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/NameValuePair.java Tue Nov 4 20:04:23 2014 @@ -29,12 +29,6 @@ package org.apache.http; /** * A name / value pair parameter used as an element of HTTP messages. - *
- * parameter = attribute "=" value - * attribute = token - * value = token | quoted-string - *- * * * @since 4.0 */ Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/ProtocolException.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/ProtocolException.java?rev=1636721&r1=1636720&r2=1636721&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/ProtocolException.java (original) +++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/ProtocolException.java Tue Nov 4 20:04:23 2014 @@ -31,7 +31,6 @@ package org.apache.http; * Signals that an HTTP protocol violation has occurred. * For example a malformed status line or headers, a missing message body, etc. * - * * @since 4.0 */ public class ProtocolException extends HttpException { Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/RequestLine.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/RequestLine.java?rev=1636721&r1=1636720&r2=1636721&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/RequestLine.java (original) +++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/RequestLine.java Tue Nov 4 20:04:23 2014 @@ -29,12 +29,7 @@ package org.apache.http; /** * The Request-Line begins with a method token, followed by the - * Request-URI and the protocol version, and ending with CRLF. The - * elements are separated by SP characters. No CR or LF is allowed - * except in the final CRLF sequence. - *
- * Request-Line = Method SP Request-URI SP HTTP-Version CRLF - *+ * Request-URI and the protocol version. * * @since 4.0 */ Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/StatusLine.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/StatusLine.java?rev=1636721&r1=1636720&r2=1636721&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/StatusLine.java (original) +++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/StatusLine.java Tue Nov 4 20:04:23 2014 @@ -30,11 +30,7 @@ package org.apache.http; /** * The first line of a Response message is the Status-Line, consisting * of the protocol version followed by a numeric status code and its - * associated textual phrase, with each element separated by SP - * characters. No CR or LF is allowed except in the final CRLF sequence. - *
- * Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF - *+ * associated textual phrase. * * @see HttpStatus * @version $Id$