jira-importer opened a new issue, #792:
URL: https://github.com/apache/httpcomponents-core/issues/792

   **[Roland 
Weber](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rolandw)** 
opened 
**[HTTPCORE-107](https://issues.apache.org/jira/browse/HTTPCORE-107?redirect=false)**
 and commented
   
   The Session Initiation Protocol in RFC 3261 defines a message format which 
is structurally identical to HTTP/1.1 
(http://tools.ietf.org/html/rfc3261#section-7). The only difference is that the 
protocol name used in the request and response lines is SIP instead of HTTP, 
and the version number is 2.0. HttpCore should be able to handle these 
messages, or others with alternative protocol names but identical syntactic 
structures. There are two parts of core affected:
   - HttpVersion currently stores only the version number, but uses a 
hard-coded protocol name HTTP
   - HTTP message parsing checks for a hard-coded protocol name HTTP (both core 
and NIO)
   
   Note that this is "tolerance for" and not "support of" SIP. SIP makes heavy 
use of intermediate 1xx responses, for which our HttpRequestExecutor and 
HttpService classes are not prepared. The rest of the core/main module, 
including message representation, connections, and the params and interceptor 
frameworks, could be used for SIP or other alternative protocols without 
further changes.
   
   This is a change of medium complexity which would significantly improve the 
flexibility of the HttpCore module.
   
   
   ---
   
   **Affects:** 4.0-alpha5
   
   **Attachments:**
   - 
[2k7-09-01-sip-1.txt](https://issues.apache.org/jira/secure/attachment/12364947/2k7-09-01-sip-1.txt)
 (_19.55 kB_)
   
   **Issue Links:**
   - [HTTPCORE-110](https://issues.apache.org/jira/browse/HTTPCORE-110) 
refactor message parsing and formatting, step 2
    (_**"is blocked by"**_)
   - [HTTPCORE-106](https://issues.apache.org/jira/browse/HTTPCORE-106) factor 
out HTTP parsing
    (_**"depends upon"**_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to