diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-10 21:50:23 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-10 21:50:23 +0900 |
| commit | 5856d9252b6bd1f1081ff57e9954ff45f1dc196c (patch) | |
| tree | dff933ae30ddb7e05d32fb4cc729e767cd1730ab /src/HttpResponseCommand.h | |
| parent | 94ee6d68950efa9626071bd2aab9402007c00860 (diff) | |
Updated doc.
Diffstat (limited to 'src/HttpResponseCommand.h')
| -rw-r--r-- | src/HttpResponseCommand.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/HttpResponseCommand.h b/src/HttpResponseCommand.h index f0216b3c..6d341154 100644 --- a/src/HttpResponseCommand.h +++ b/src/HttpResponseCommand.h @@ -46,6 +46,16 @@ class HttpResponse; class SocketCore; class StreamFilter; +// HttpResponseCommand receives HTTP response header from remote +// server. Because network I/O is non-blocking, execute() returns +// false when all response headers are not received. Subsequent calls +// of execute() receives remaining response headers and when all +// headers are received, it examines headers. If status code is 200 +// or 206 and Range header satisfies requested range, it creates +// HttpDownloadCommand to receive response entity body. Otherwise, it +// creates HttpSkipResponseCommand to receive response entity body and +// returns true. Handling errors such as 404 or redirect is handled in +// HttpSkipResponseCommand. class HttpResponseCommand : public AbstractCommand { private: SharedHandle<HttpConnection> httpConnection_; |
