eidheim
|
931ff3dba2
|
Cleanup of parse_request and connection close support
|
2016-03-10 10:09:31 +01:00 |
|
eidheim
|
b841331023
|
Merge branch 'branch_1' of https://github.com/waga-git/Simple-Web-Server
|
2016-03-10 09:36:20 +01:00 |
|
eidheim
|
357e57f70c
|
Added reference to case insensitive implementation of unordered_multimap
|
2016-02-24 09:17:09 +01:00 |
|
eidheim
|
3c4c378655
|
Fixes #35 for both client and server source
|
2016-02-24 09:13:23 +01:00 |
|
waga-git
|
c558a03148
|
Support Connection: close header
|
2016-02-20 12:01:26 +09:00 |
|
waga-git
|
076788d417
|
Support Connection: close header
|
2016-02-20 11:50:17 +09:00 |
|
eidheim
|
faf3c68c4b
|
Fixes #28
|
2015-12-09 14:44:28 +01:00 |
|
DraconPern
|
e37980fefc
|
fixed vs2012 compile
|
2015-11-27 14:43:38 -06:00 |
|
eidheim
|
e6a3205e18
|
Improved Client::parse_response_header, and simplified endpoint code in Server::start.
|
2015-11-26 14:29:43 +01:00 |
|
eidheim
|
7b5688468a
|
Fixed at least two bugs when receiving non-standard requests.
|
2015-11-24 20:02:11 +01:00 |
|
eidheim
|
b273602032
|
Moved io_service.reset before endpoint and acceptor setup.
|
2015-11-24 10:48:30 +01:00 |
|
eidheim
|
90d854759e
|
Server::start-stop-start should now work given that appropriate delays are set between the operations (at least start and stop).
|
2015-11-24 10:46:51 +01:00 |
|
eidheim
|
8534eed87d
|
Added Server::Config, fixes #26, making it possible to specify address or turn off reuse_address.
|
2015-11-22 21:20:36 +01:00 |
|
eidheim
|
4adf2e040a
|
Removed io_service from Server::Response since it is no longer needed. Fixes #25.
|
2015-11-18 08:23:44 +01:00 |
|
David Björkevik
|
57cc062223
|
Use boost regex instead of std, because of buggy glibc++ in RHEL7
|
2015-09-28 16:59:03 +02:00 |
|
eidheim
|
7951ded3ec
|
Slight cleanup and added convenience function to retrieve Request::content string.
|
2015-09-19 13:01:40 +02:00 |
|
eidheim
|
c58b7a788e
|
Response stream now subclass std::ostream. Also some cleanup of default_resource example.
|
2015-09-06 17:59:02 +02:00 |
|
eidheim
|
4bc50785ac
|
Moved boost::asio::strand yet again.
|
2015-09-04 18:49:26 +02:00 |
|
eidheim
|
e6e52f0c46
|
Added size_t Response::size().
|
2015-09-04 18:02:33 +02:00 |
|
eidheim
|
9e6b01eed1
|
Moved strand to ServerBase.
|
2015-09-04 18:01:16 +02:00 |
|
eidheim
|
3b85cd0c54
|
Fixes #14. Now does not copy pointers in the stream to be sent to client.
|
2015-09-03 08:15:27 +02:00 |
|
eidheim
|
fa1efed7f0
|
Now closes file if connection is interrupted in default_resource example. Also some minor cleanup.
|
2015-09-02 21:02:06 +02:00 |
|
eidheim
|
1a39476f92
|
Removed async_flush and its likely erroneous code.
|
2015-09-02 19:55:20 +02:00 |
|
eidheim
|
0ddc469edd
|
Minor fix.
|
2015-08-03 21:37:44 +02:00 |
|
eidheim
|
8567c9f867
|
Minor fix.
|
2015-08-03 21:19:37 +02:00 |
|
eidheim
|
d74505ed86
|
Fixed crash on server when Content-Length parameter was set to a non-number.
|
2015-08-03 21:15:26 +02:00 |
|
Christophe Meessen
|
739da9c1e6
|
remove ; after Server<HTTP> constructor
|
2015-06-27 13:12:59 +02:00 |
|
Christophe Meessen
|
2177e330b7
|
Changed Request::remote_endpoint_address to std::string. Modified parse_request too keep case of header parameters.
|
2015-06-27 11:30:20 +02:00 |
|
eidheim
|
5f34b5db5e
|
Added Request::remote_endpoint_address and Request::remote_endpoint_port that are read when Request is created.
|
2015-06-27 10:43:17 +02:00 |
|
Christophe Meessen
|
bc7e5da304
|
comment unused parameter
|
2015-06-27 10:12:17 +02:00 |
|
TechPriest
|
96f3e0c766
|
Fixed MSVC build of HTTP server.
|
2015-05-06 11:48:35 +03:00 |
|
eidheim
|
525eb2983b
|
Slightly faster resource lookup.
|
2015-02-22 15:26:30 +01:00 |
|
eidheim
|
7aae65b1b5
|
All resources now again uses regex for path, since requests/second were no longer much affected by this.
|
2015-02-22 12:06:30 +01:00 |
|
eidheim
|
a6154c7c5b
|
Added custom response stream and possibility to flush response to clients synchronously and asynchronously. Various speed ups, including reduced use of regex and preprocessing of regex objects. boost::asio::ip::tcp::no_delay is now turned on for both Client and Server. Note: Not backward compatible with earlier versions.
|
2015-02-20 11:14:39 +01:00 |
|
eidheim
|
37e12d0a63
|
Added threads.clear() in ServerBase::start.
|
2015-01-09 13:01:30 +01:00 |
|
eidheim
|
0c96e9f845
|
Added all_resources.clear() to ServerBase::start in case server is restarted.
|
2015-01-09 12:27:16 +01:00 |
|
eidheim
|
db365340bf
|
Added option for verify_file in Server-constructor, and certification/key file and verify_file for Client-constructor (Warning: not tested). Also moved set_timeout_on_socket to the ServerBase.
|
2014-11-01 18:18:00 +01:00 |
|
eidheim
|
084f45cc33
|
Added Server::stop()
|
2014-09-28 13:05:24 +02:00 |
|
eidheim
|
38ca7e5575
|
renamed streambuf to content_buffer
|
2014-08-12 07:47:27 +02:00 |
|
eidheim
|
8bc7d3e623
|
Some bugfixes and cleanup. Added client
|
2014-08-11 10:03:27 +02:00 |
|
eidheim
|
fe90ba9d57
|
minor cleanup
|
2014-08-07 08:26:51 +02:00 |
|
eidheim
|
cdf7114f2d
|
Added possibility of no timeout (=0)
|
2014-08-05 17:22:55 +02:00 |
|
eidheim
|
c12e026e0e
|
Minor changes
|
2014-08-04 23:23:58 +02:00 |
|
eidheim
|
b1a91fb923
|
Added timeouts
|
2014-08-04 23:12:23 +02:00 |
|
eidheim
|
df5da942f6
|
renamed server.resources to server.resource
|
2014-08-01 13:30:11 +02:00 |
|
eidheim
|
00dbe0bdd5
|
Minor updates.
|
2014-07-31 22:27:57 +02:00 |
|
eidheim
|
7a7956b700
|
removed 'using namespace' from .hpp-files
|
2014-07-14 13:27:06 +02:00 |
|
eidheim
|
f018ce81ff
|
minor changes
|
2014-07-13 01:13:05 +02:00 |
|
eidheim
|
401b9bbc69
|
added HTTPS support
|
2014-07-12 21:19:03 +02:00 |
|