summaryrefslogtreecommitdiff
path: root/lib/httpserver
Commit message (Collapse)AuthorAge
* Fix build on ARM64 with unsigned charChris Wilson2017-06-26
| | | | Thanks to Reinhard Tartler for pointing out the problem and suggesting the fix!
* Remove unused headers not present on Windows. Add missing header.Chris Wilson2015-12-09
|
* Add logging to S3Client about connection reuseChris Wilson2015-08-29
|
* Set network timeout in S3Client.Chris Wilson2015-08-29
| | | | To give the S3Simulator a chance to respond.
* Improve exception messages in HTTPRequest as wellChris Wilson2015-08-29
|
* Disable HTTP keepalive for now because we don't support it properlyChris Wilson2015-08-29
|
* Increase S3Simulator HTTP timeout to aid debuggingChris Wilson2015-08-29
|
* Improve exception messages when reading an HTTPResponseChris Wilson2015-08-29
|
* Whitespace, import order and comment fixesChris Wilson2015-08-29
|
* Whitespace, layout and comment cleanups.Chris Wilson2015-08-15
|
* Add configurable timeouts and HEAD request support to S3 client.Chris Wilson2015-08-15
| | | | Allow getting the Content-Length of an HTTPResponse object.
* Add S3Store account creation.Chris Wilson2015-07-31
|
* Fix S3Simulator daemon name, and hence memleaks filename.Chris Wilson2015-07-31
|
* Add HTTP request logging to S3Simulator.Chris Wilson2015-07-31
|
* Add a method on S3Client to check HTTPResponse for errors.Chris Wilson2015-07-31
| | | | Throws a suitable exception if the response status code is not 200 OK.
* Fix S3Client handling of "Connection: close" responses.Chris Wilson2015-07-31
| | | | | We can't continue to use the same connection after receiving such a response, so close it immediately.
* Add utility methods to HTTPRequest and HTTPResponse classes.Chris Wilson2015-07-31
| | | | | Allow getting method name of an HTTPRequest, and connection open/closed status of an HTTPResponse.
* Make Protocol take control of the socket object passed in.Chris Wilson2014-03-01
| | | | | | | | | | | | | 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.
* Fix compile error on OpenSolaris 10/Sun Studio 12. (merges [2720])Chris Wilson2010-08-28
|
* Run Perl scripts quietly during make.Chris Wilson2010-01-24
|
* Fixes for gcc 4.4.Martin Ebourne2009-04-23
|
* Move S3Simulator into its own class, like S3Client, for reuse elsewhere.Chris Wilson2009-04-13
|
* Fix type of string position variable to avoid failure (and warning) onChris Wilson2009-03-16
| | | | | platforms where size_t is signed, e.g. FreeBSD.
* Move S3Client class into its own files for public access.Chris Wilson2009-01-09
|
* Reset to remove old content in HTTPResponse in assignment operator.Chris Wilson2009-01-09
|
* Allow copying an HTTPResponse so that it can be returned by S3Client Chris Wilson2009-01-07
| | | | | methods.
* Add Amazon S3 signature checking to simulator.Chris Wilson2009-01-06
|
* Create HTTP responses with the stream that they will be sent to, for 100 Chris Wilson2009-01-05
| | | | | Continue support.
* Don't read the whole uploaded body in HTTPRequest::Receive, as the Chris Wilson2009-01-05
| | | | | | | | | | | | | | | | | 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).
* New exception code for sending an HTTP response when it was not created Chris Wilson2009-01-05
| | | | | with a stream to send to.
* Add support for sending an HTTP/1.0 100 Continue response during Chris Wilson2009-01-05
| | | | | | processing of a request by HTTPServer, by keeping a pointer to the socket object.
* Allow adding headers to an HTTPRequest.Chris Wilson2009-01-04
| | | | | | | | Allow getting response headers out of HTTPResponse. Rename HTTPRequest Read and Write methods to Send and Receive, to avoid confusion with IOStream.
* Add HTTP status code 400, method not allowed.Chris Wilson2009-01-04
| | | | | | Fix calculation of remaining content size when some bytes were buffered by the IOStreamGetLine.
* Add ability to send an HTTPRequest to a socket and to parse an Chris Wilson2009-01-03
| | | | | HTTPResponse from a socket, to create a simple HTTP client.
* Compile and config verify fixes for HTTP server code.Chris Wilson2009-01-03
|
* Copy HTTP server into Box, for use with S3 testing.Chris Wilson2009-01-03