| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We pass a std::auto_ptr<SocketStream> to every Protocol subclass when we
construct it, and it takes control of this object. This reduces the risk of:
* accidentally reusing the same SocketStream for multiple Protocols
(it happened to me in testbackupstore);
* holding onto a reference to the SocketStream;
* allowing a locally-scoped SocketStream to go out of scope and be released
while still being referenced by a live Protocol.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
platforms where size_t is signed, e.g. FreeBSD.
|
| |
|
| |
|
|
|
|
|
| |
methods.
|
| |
|
|
|
|
|
| |
Continue support.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
client may be expecting a 100 Continue header (or other response) before
sending it, and only the HTTPServer should send that for us.
Keep track of the stream that we're reading from, in case there's a body
to read later.
Simplify parsing of HTTP method, and add support for PUT requests.
Add support for parsing Expect headers and storing and retrieving any
unrecognised headers.
Add support for sending a streaming upload from an IOStream with an HTTP
request as the body (e.g. for PUT requests).
|
|
|
|
|
| |
with a stream to send to.
|
|
|
|
|
|
| |
processing of a request by HTTPServer, by keeping a pointer to the
socket object.
|
|
|
|
|
|
|
|
| |
Allow getting response headers out of HTTPResponse.
Rename HTTPRequest Read and Write methods to Send and Receive, to avoid
confusion with IOStream.
|
|
|
|
|
|
| |
Fix calculation of remaining content size when some bytes were buffered
by the IOStreamGetLine.
|
|
|
|
|
| |
HTTPResponse from a socket, to create a simple HTTP client.
|
| |
|
|
|