Commit Graph
61 Commits
Author SHA1 Message Date
Chunting Gu 5abd7e275c Refine keep-alive connections. 2019-03-12 17:39:15 +08:00
Chunting Gu 901b2902a2 Merge HttpClient and HttpSslClient; draft of client connection pool. 2019-03-11 14:44:52 +08:00
Chunting Gu 3647407b8b Throw exception from inside HttpClientSession.Request(). 2019-03-08 11:06:19 +08:00
Chunting Gu 31d0ea3c9d Cleanup async client APIs. 2019-03-07 16:02:49 +08:00
Chunting Gu ffa0794926 Handle both HTTP & HTTPS in HttpClientSession; remove macro WEBCC_ENABLE_SSL. 2019-03-06 13:46:19 +08:00
Chunting Gu 9b8304f06c Initial client API V2 2019-03-06 11:13:33 +08:00
Chunting Gu b38b7e6d38 Breaking changes on the client, push only for keeping the history. 2019-03-01 09:29:03 +08:00
Chunting Gu d42556ce5a Forbit to create http async clients on stack since they are derived from std::shared_from_this. 2019-02-25 10:31:28 +08:00
Chunting Gu 43eaf90621 Add a base class for http async clients; refine examples. 2019-02-12 17:06:26 +08:00
Chunting Gu 3e60c76da1 Allow to set buffer size for client; don't auto adjust reading buffer size; refine the global definitions. 2019-02-11 12:46:27 +08:00
Chunting Gu ae9d4efcf1 Abdandon the template RestBasicClient. 2019-02-01 14:50:06 +08:00
Chunting Gu 8d9855f751 Support chunked response content (but no Trailer headers). 2019-01-31 18:10:12 +08:00
Chunting Gu 7f16d30165 Add an example for HttpBin.org 2019-01-28 15:24:40 +08:00
Chunting Gu 6a51be172a Automatically install VLD to example output folder. 2018-10-18 11:21:15 +08:00
Chunting Gu e3e9a22181 Limit the HTTP body content to dump/log. 2018-10-11 14:32:34 +08:00
Chunting Gu d159ce46bf Add RestSslClient; add User-Agent header. 2018-10-11 12:47:47 +08:00
Chunting Gu b02ea902c9 Improve the response result composition. 2018-09-27 17:05:29 +08:00
Chunting Gu 76417c3703 Rework the parsing of soap response. 2018-09-20 15:24:54 +08:00
Chunting Gu f5fe4e67f7 Support to use SOAP 1.1 or 1.2. 2018-09-19 21:39:32 +08:00
Chunting Gu c0b61a31a2 Update the example in README.md. 2018-09-09 11:53:51 +08:00
Chunting Gu 294cc74535 Fix dead loop of HttpClient on Linux; Allow to call Request() multiple times on the same HttpClient object. 2018-09-09 11:45:23 +08:00
Chunting Gu 921defc0e3 Use HttpClient as member variable inside RestClient and SoapClient. 2018-09-06 14:18:02 +08:00
Chunting Gu 7f692a9602 Refine REST book examples. 2018-08-28 13:03:25 +08:00
Adam Gu a863b379d0 Refactor RestService interfaces. 2018-08-24 16:51:08 +08:00
Adam Gu e9096d4e53 Refine timeout control; refine rest book examples. 2018-08-23 17:28:02 +08:00
Chunting Gu 1b7e1378b4 Replace boost thread with std thread for queue; refine cmake files. 2018-08-04 11:32:29 +08:00
Adam Gu ab781a691f Add SoapAsyncClient. 2018-08-03 16:59:23 +08:00
Adam Gu e368ad2efb Close the socket after shutdown. 2018-07-31 10:50:11 +08:00
Adam Gu 5fd5d8ff15 Add HTTP SSL client exmaple. 2018-07-30 15:30:16 +08:00
Adam Gu 3693d881c7 Refacotring; support HTTPs client. 2018-07-30 15:03:02 +08:00
Adam Gu 33f2b84f8c Replace boost thread with std thread; update rest book example; move soap tutorials to wiki. 2018-07-23 15:40:58 +08:00
Adam Gu 6475a3fd35 Use composite instead of inheritance for SoapClient. 2018-07-19 13:52:20 +08:00
Adam Gu 223e59cc7a Support CDATA for SOAP request and response; Rename Parameter to SoapParameter; Add book server and client example for SOAP. 2018-07-19 11:19:51 +08:00
Adam Gu 9b3be4c18c Refine the parsing of start line; return 201 instead of 200 for POST request. 2018-07-13 13:08:36 +08:00
Adam Gu cbf3efbcba Refine HTTP request and response. 2018-07-10 11:02:49 +08:00
Adam Gu 88511caff6 Reorganize folder structure. 2018-07-06 13:59:16 +08:00
Adam Gu 3b13cc74f7 Code refactoring. 2018-07-06 11:01:23 +08:00
Adam Gu 1d64421e33 Fix a logger init issue. 2018-07-05 17:12:13 +08:00
Adam Gu b85377c3a3 Optimize memory allocation for client buffer; add VLD to detect memory on Windows. 2018-07-05 16:07:26 +08:00
Adam Gu 7280b09f10 Add file log support 2018-07-03 14:01:47 +08:00
Adam Gu 44271eb2cc Fix async client issues. 2018-06-14 17:21:24 +08:00
Adam Gu 21c20b075f Switch log level control from runtime to compile time 2018-06-07 10:18:26 +08:00
Adam Gu 2cc22a80a6 Fix an issue of receiving response; refine error handling. 2018-06-05 15:00:49 +08:00
Adam Gu 6a7aa4cc12 Rename HttpSession back to HttpConnection. 2018-06-04 13:07:04 +08:00
Adam Gu 9bf45e6ecb Add async-client support; refine http message dump format. 2018-06-04 12:03:22 +08:00
Adam Gu 79665c75ba Pass pugi xml_mode by value; refine coding style. 2018-05-23 13:07:17 +08:00
Adam Gu cdc61b4bf2 Rename RegisterService to Bind and add is_regex parameter; indent public/protected/private by one space; refine rest example. 2018-05-22 15:45:38 +08:00
Adam Gu 1bab2da8f4 Refactoring according Google C++ Style. 2018-05-18 15:37:09 +08:00
Chunting Gu 189a246221 Add RestListService and RestDetailService; update README. 2018-05-12 19:09:37 +08:00
Chunting Gu 5e6f125f90 Fix compile errors on Linux. 2018-05-12 09:05:11 +08:00