mirror of https://github.com/aria2/aria2
Updated doc.
parent
94ee6d6895
commit
5856d9252b
|
@ -42,6 +42,12 @@ namespace aria2 {
|
||||||
class HttpConnection;
|
class HttpConnection;
|
||||||
class SocketCore;
|
class SocketCore;
|
||||||
|
|
||||||
|
// HttpRequestCommand sends HTTP request header to remote server.
|
||||||
|
// Because network I/O is non-blocking, execute() returns false if all
|
||||||
|
// headers have not been sent. Subsequent calls of execute() send
|
||||||
|
// remaining header and when all headers are completely sent,
|
||||||
|
// execute() creates next Command object, HttpResponseCommand, and
|
||||||
|
// returns true.
|
||||||
class HttpRequestCommand:public AbstractCommand {
|
class HttpRequestCommand:public AbstractCommand {
|
||||||
private:
|
private:
|
||||||
SharedHandle<Request> proxyRequest_;
|
SharedHandle<Request> proxyRequest_;
|
||||||
|
|
|
@ -46,6 +46,16 @@ class HttpResponse;
|
||||||
class SocketCore;
|
class SocketCore;
|
||||||
class StreamFilter;
|
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 {
|
class HttpResponseCommand : public AbstractCommand {
|
||||||
private:
|
private:
|
||||||
SharedHandle<HttpConnection> httpConnection_;
|
SharedHandle<HttpConnection> httpConnection_;
|
||||||
|
|
Loading…
Reference in New Issue