Commit Graph

51 Commits

Author SHA1 Message Date
Trustin Lee
431151b8e5 Fixed issue: NETTY-107 - HttpMessageDecoder can not handle the content with no 'Content-Length' header. 2009-02-12 07:32:53 +00:00
Trustin Lee
2d682dc2a3 Fixed NETTY-107 HttpMessageDecoder can not handle the content with no 'Content-Length' header.
* Added HttpMessage.getContentLength(int defaultValue)
* Renamed state enum values
2009-02-12 07:17:29 +00:00
Trustin Lee
5faa7e9ea8 Removed unnecessary boxing / unboxing 2009-02-12 07:09:51 +00:00
Trustin Lee
e787378024 US-ASCII -> ASCII 2009-02-12 07:03:35 +00:00
Trustin Lee
912c66b931 Forgot to encode the last chunk correctly 2009-02-12 07:01:26 +00:00
Trustin Lee
2a555082bb Implemented chunked encoding support for the HTTP encoder 2009-02-12 06:37:22 +00:00
Trustin Lee
602c99c532 Fixed a problem where the last chunk is decoded too early 2009-02-12 06:27:17 +00:00
Trustin Lee
ebe77cef21 Fixed a 'shouldn't reach here' error 2009-02-12 06:26:05 +00:00
Trustin Lee
5ee6da3892 Fixed a bug where HttpRequest message is decoded twice 2009-02-12 06:25:13 +00:00
Trustin Lee
2ac8d11a34 Fixed a problem where DefaultHttpChunk.isLast returns a wrong value 2009-02-12 06:22:06 +00:00
Trustin Lee
44d56d2c1a Added HttpChunk message for users who want to receive the content chunk by chunk 2009-02-12 06:09:29 +00:00
Trustin Lee
b6c992de8b More optimistic initial line buffer size 2009-02-12 05:49:19 +00:00
Trustin Lee
a4fe52559b More robust CR/LF handling in chunked encoding 2009-02-12 05:48:25 +00:00
Trustin Lee
9125ff5616 Fixed more issues related with chunked encoding 2009-02-12 05:41:22 +00:00
Trustin Lee
fb74832dc8 * Removed the usage of unnecessary state variable
* Renamed READ_CRLF to READ_END_OF_CHUNK
2009-02-12 05:28:55 +00:00
Trustin Lee
66423e0c1d More robust chunk size parser 2009-02-12 05:23:39 +00:00
Trustin Lee
44498e067f * Improved the detection of chunked encoding
* Fixed broken chunk length parser
2009-02-12 05:16:38 +00:00
Trustin Lee
01b0beab50 Typo 2009-02-12 05:14:16 +00:00
Trustin Lee
1243baa05b More robust HTTP message decoding 2009-02-12 05:10:25 +00:00
Trustin Lee
9cdc4a959e Better white space handling in HTTP 2009-02-12 05:02:22 +00:00
Trustin Lee
0198da7b6c Related issue: NETTY-116 HTTP issues including chunked request / response patch
* Applied Dave's patch for QueryStringDecoder
2009-02-12 04:39:17 +00:00
Trustin Lee
32738273e0 Related issue: NETTY-116 HTTP issues including chunked request / response patch
* Applied Dave's patch for HttpMessageDecoder
2009-02-12 04:37:48 +00:00
Trustin Lee
3acbe08eac Code clean up 2009-02-11 09:24:28 +00:00
Trustin Lee
3f009da453 Resolved issue: NETTY-124 Clean the constants in HttpHeaders
* Reorganized HttpHeaders and added a bunch of constants
2009-02-11 08:48:39 +00:00
Trustin Lee
f44d9eced8 Added a TODO item 2009-02-11 06:14:07 +00:00
Trustin Lee
7fddc9ddfa * Added OneToOneEncoder and OneToOneDecoder
* Removed most duplicate code by extending them
2008-12-17 07:38:32 +00:00
Trustin Lee
afe9c3c577 Fixed a findbugs warning 2008-12-08 23:58:46 +00:00
Trustin Lee
1fa791c4a4 Made sure all out-of-the-box encoders and decoders respect the ChannelBufferFactory configuration 2008-12-08 09:02:33 +00:00
Trustin Lee
22b3885fe5 Automatic code cleanup 2008-12-08 08:24:48 +00:00
Trustin Lee
fe98713cba * Added ChannelBufferFactory and its implementations
* Made sure ChannelBuffer implementations respect the associated ChannelBufferFactory
2008-12-08 08:20:34 +00:00
Trustin Lee
df2f9d9d50 Removed System.out.printlns 2008-12-05 02:05:42 +00:00
Trustin Lee
978bc83730 Made HttpMethod extensible 2008-12-05 01:58:38 +00:00
Trustin Lee
5075ac9d3a Optimized imports in HttpVersion 2008-12-05 01:35:11 +00:00
Trustin Lee
48c28185a3 Removed broken Javadoc tags 2008-12-05 01:19:15 +00:00
Trustin Lee
5b69f0f5ac Made HttpVersion extensible 2008-12-05 01:18:18 +00:00
Trustin Lee
cd5f5732a2 Added HttpMessage.setHeader(String, String) 2008-12-04 02:17:22 +00:00
Trustin Lee
a1bac0c843 APIviz tagging 2008-12-03 09:05:54 +00:00
Trustin Lee
a30c36d8e2 * APIviz tagging
* Added missing @version tags
2008-12-03 09:00:29 +00:00
Trustin Lee
5bed9f4bc4 Added HttpMessage.removeHeader() 2008-12-01 09:34:45 +00:00
Trustin Lee
7d37a2f78b Added QueryStringEncoder.toString() 2008-12-01 05:29:59 +00:00
Trustin Lee
2d92771ae6 Resolved NETTY-88 (Change the HTTP codec to use String instead of URI) 2008-12-01 05:27:56 +00:00
Trustin Lee
e213b54b71 Fixed a problem where HttpMessageDecoder doesn't finish decoding immediately when content-length is 0 (or there's no content) 2008-11-30 16:29:35 +00:00
Trustin Lee
d4348ab4d7 Fixed NETTY-86 (HttpResponseDecoder decodes the initial line incorrectly.) 2008-11-30 16:22:03 +00:00
Trustin Lee
e0e282770f Code cleanup 2008-11-28 05:28:50 +00:00
Trustin Lee
6947ba0863 Added package-info.java for the http package 2008-11-26 09:01:18 +00:00
Trustin Lee
09e8a73bf2 Removed unimplemented method (I think whether to keep-alive or not should be determined in the higher level) 2008-11-26 08:53:19 +00:00
Trustin Lee
796238d929 * Renamed HttpVersion.getProtocol() to decode()
* A little bit of code clean up
2008-11-26 08:49:33 +00:00
Trustin Lee
1ff2b7bbc9 FIXMEs in HTTP QueryStringEncoder/Decoder 2008-11-26 08:44:39 +00:00
Trustin Lee
8ac3b2905d StringBuffer -> StringBuilder 2008-11-20 08:15:20 +00:00
Trustin Lee
c6ce2c3984 Fixed the issues that FindBugs raised 2008-11-19 09:15:19 +00:00