Zhe Ma
|
897d268377
|
Fix URL encoding issue.
|
6 years ago |
Chunting Gu
|
2c75644622
|
Simplify the macros for logger.
|
6 years ago |
Chunting Gu
|
9f3d968e77
|
Fix URL encode issue.
|
6 years ago |
Chunting Gu
|
53a731caf5
|
Extract the route related code to new class Router and add UT.
|
6 years ago |
Chunting Gu
|
9166b5d99e
|
Add auto test for client timeout.
|
6 years ago |
Chunting Gu
|
43d9dcab25
|
Add backup files, add test data for doc root, etc.
|
6 years ago |
Chunting Gu
|
f1ad97b227
|
Rework book example to support upload book photo.
|
6 years ago |
Chunting Gu
|
4c413e245d
|
Allow to get the size of the queue.
|
6 years ago |
Chunting Gu
|
ad1016734e
|
Rename Request() to Send().
|
6 years ago |
Chunting Gu
|
1a21989b2e
|
Fix URL encoding issues; remove request shortcuts.
|
6 years ago |
Chunting Gu
|
9b13dceab9
|
Support data streaming on server side.
|
6 years ago |
Chunting Gu
|
66cab76ce6
|
Rework the data streaming
|
6 years ago |
Chunting Gu
|
4f9263048f
|
Post a file with data streaming
|
6 years ago |
Chunting Gu
|
feae9b7acc
|
Refine the streaming, add UT, add error handling.
|
6 years ago |
Chunting Gu
|
0292b4b51e
|
Support response data streaming and add an example file downloader.
|
6 years ago |
Chunting Gu
|
3077f21549
|
Move data decompression to StringBody.
|
6 years ago |
Chunting Gu
|
effe302faa
|
Use bfs::path for logger path.
|
6 years ago |
Chunting Gu
|
b16ba928d4
|
Add more comments for using Windows system cert store.
|
6 years ago |
Chunting Gu
|
a22e587fa4
|
Rename static_server to file_server and refine it.
|
6 years ago |
Chunting Gu
|
1f4b6cac30
|
Allow to set file chunk size to the server.
|
6 years ago |
Chunting Gu
|
da6addc653
|
Fix a mistake of disabling keep-alive from request.
|
6 years ago |
Chunting Gu
|
673a98cffb
|
Allow to stop server and restart server; allow to run loop in multiple threads.
|
6 years ago |
Chunting Gu
|
0f0f6fdf8e
|
Add parameters like timeout, buffer_size to ClientSession.
|
6 years ago |
Chunting Gu
|
3b77b001e1
|
Fix a stack overflow issue when reading large response data.
|
6 years ago |
Chunting Gu
|
975d73720a
|
Increase version to 0.2.0 for a new release.
|
6 years ago |
Chunting Gu
|
46ea52cb90
|
Refine the connection close
|
6 years ago |
Adam Gu
|
2a20030f7e
|
Fix the ambiguity of the contructors of FormPart.
|
6 years ago |
Chunting Gu
|
8b85248a34
|
Merge request handler to server; add FileBody for serving static files.
|
6 years ago |
Chunting Gu
|
b2cbc450b8
|
Fix payload iteration issue of FormBody; Log form body; ignore body for response of HEAD.
|
6 years ago |
Chunting Gu
|
3309e7896a
|
Add new log level USER
|
6 years ago |
Chunting Gu
|
ec753c14c3
|
Add hello world server example
|
6 years ago |
Chunting Gu
|
98aeeae012
|
Rework the body of request and response
|
6 years ago |
Chunting Gu
|
a3cab444dc
|
Server API rework.
|
6 years ago |
Chunting Gu
|
8a7f53313b
|
Add response builder to simplify the response build; refine the service interfaces.
|
6 years ago |
Chunting Gu
|
4140b4f94c
|
Rework the server to remove rest_xxx classes.
|
6 years ago |
Chunting Gu
|
43aadee885
|
Use system certificate on Windows.
|
6 years ago |
Chunting Gu
|
889024d6c7
|
Fix a compile error when SSL is disabled.
|
6 years ago |
Chunting Gu
|
8c09189b14
|
Rework the client error handling
|
6 years ago |
Chunting Gu
|
c2a009f68a
|
Don't log EOF as error.
|
6 years ago |
Chunting Gu
|
22b209d13e
|
Allow to add Date header to the request.
|
6 years ago |
Chunting Gu
|
7af95778f5
|
Rework the prepare of response status line
|
6 years ago |
Chunting Gu
|
22b783ce97
|
Replace deadline_timer with steady_timer.
|
6 years ago |
Chunting Gu
|
2035c1f552
|
Refine the parsing of response status line; add UT for utility.
|
6 years ago |
Chunting Gu
|
78743e6a55
|
Rename macro WIN32 to _WIN32
|
6 years ago |
Chunting Gu
|
8ff63a3b17
|
Remove log level FATA.
|
6 years ago |
Chunting Gu
|
e326a663f6
|
Refine coding style
|
6 years ago |
Chunting Gu
|
113dacb9ce
|
Remove PostFile() from session; refine cmake files; replace final with override.
|
6 years ago |
Chunting Gu
|
2fe4024511
|
Refine parser
|
6 years ago |
Chunting Gu
|
2a868c4dc1
|
Add an option to disable GZIP.
|
6 years ago |
Chunting Gu
|
4721d50363
|
Fix multipart form data parsing
|
6 years ago |
Chunting Gu
|
e621025cc3
|
Remove http prefix
|
6 years ago |
Chunting Gu
|
de4574a437
|
Refine multipart form.
|
6 years ago |
Chunting Gu
|
3742143657
|
Refine authorization.
|
6 years ago |
Chunting Gu
|
5553a70603
|
Remove two error codes
|
6 years ago |
Chunting Gu
|
e63dc748ab
|
Remove SOAP support
|
6 years ago |
Chunting Gu
|
b72820c9c5
|
Add UT for http parser.
|
6 years ago |
Chunting Gu
|
ddfcecccc6
|
Add automation test for http client based on httpbin.org
|
6 years ago |
Chunting Gu
|
df4bb33bd8
|
Fix content-type parsing issue; refine http parser.
|
6 years ago |
Chunting Gu
|
5e1b14e74d
|
Add a config option allowing to disable SSL.
|
6 years ago |
Chunting Gu
|
d9509bda4a
|
Refine form data
|
6 years ago |
Chunting Gu
|
a96109c3b7
|
Remove HttpFile to FormPart; refine payload prepare.
|
6 years ago |
Chunting Gu
|
80d0c73617
|
Simplify RestRequest struct.
|
6 years ago |
Chunting Gu
|
5c465a1e2d
|
Support file upload in server side.
|
6 years ago |
Chunting Gu
|
5f9532759e
|
Refine files upload.
|
6 years ago |
Chunting Gu
|
ba705e930e
|
Add VS2013 support back.
|
6 years ago |
Chunting Gu
|
ee435f84c3
|
Refine the response for bad request.
|
6 years ago |
Chunting Gu
|
37e71c6aca
|
Refine logger for colors
|
6 years ago |
Chunting Gu
|
0ad277322f
|
Support terminal colors for logger.
|
6 years ago |
Chunting Gu
|
6f7acfc442
|
Refine the support for uploading files.
|
6 years ago |
Chunting Gu
|
d1ddfa4b3d
|
Add basic auth support to the client; rename methods of HttpRequestBuilder.
|
6 years ago |
Chunting Gu
|
a8e86dec5e
|
Post/upload files support.
|
6 years ago |
Chunting Gu
|
18db152419
|
Add base64 encode and decode.
|
6 years ago |
Chunting Gu
|
ee56fe9d1b
|
Only allow session-level setting for ssl_verify and buffer_size.
|
6 years ago |
Chunting Gu
|
6c5dedb807
|
Support persistent connection for server.
|
6 years ago |
Chunting Gu
|
6c4ac75c35
|
Add comment to HttpClientSession about the usage in multi-thread scenario.
|
6 years ago |
Chunting Gu
|
3b7f4ecacf
|
Add shortcuts for GET, POST, etc. to HttpClientSession.
|
6 years ago |
Chunting Gu
|
52231d52e6
|
Add a missing source file; update README.
|
6 years ago |
Chunting Gu
|
da1dbbb073
|
Add HttpRequestBuilder to replace HttpRequestArgs
|
6 years ago |
Chunting Gu
|
d906470a4a
|
Support request and response compression.
|
6 years ago |
Chunting Gu
|
f6c305d266
|
Add keep_alive() to HttpClientArgs
|
6 years ago |
Chunting Gu
|
5853f39ac3
|
Stop deadline timer once start to read response.
|
6 years ago |
Chunting Gu
|
99e02927b7
|
Reconnect and retry the request if server has closed the reused connection.
|
6 years ago |
Chunting Gu
|
3566b1d98b
|
Add timeout setting HttpClientSession.
|
6 years ago |
Chunting Gu
|
53fb2a92c9
|
Add buffer size to HttpClientSession
|
6 years ago |
Chunting Gu
|
bc586c3ea0
|
Handle zlib on Ubuntu.
|
6 years ago |
Chunting Gu
|
5f64f3bb62
|
Add zlib to support content-encoding (gzip, deflate)
|
6 years ago |
Chunting Gu
|
616f5a3f5e
|
Reorganize examples; fix soap issues.
|
6 years ago |
Chunting Gu
|
05782b773a
|
Refine client session and its examples.
|
6 years ago |
Chunting Gu
|
5abd7e275c
|
Refine keep-alive connections.
|
6 years ago |
Chunting Gu
|
901b2902a2
|
Merge HttpClient and HttpSslClient; draft of client connection pool.
|
6 years ago |
Chunting Gu
|
0db366bfe0
|
Drop the support of VS2013
|
6 years ago |
Chunting Gu
|
3647407b8b
|
Throw exception from inside HttpClientSession.Request().
|
6 years ago |
Chunting Gu
|
31d0ea3c9d
|
Cleanup async client APIs.
|
6 years ago |
Chunting Gu
|
ffa0794926
|
Handle both HTTP & HTTPS in HttpClientSession; remove macro WEBCC_ENABLE_SSL.
|
6 years ago |
Chunting Gu
|
9b8304f06c
|
Initial client API V2
|
6 years ago |
Chunting Gu
|
b38b7e6d38
|
Breaking changes on the client, push only for keeping the history.
|
6 years ago |
Chunting Gu
|
d42556ce5a
|
Forbit to create http async clients on stack since they are derived from std::shared_from_this.
|
6 years ago |
Chunting Gu
|
43eaf90621
|
Add a base class for http async clients; refine examples.
|
7 years ago |
Chunting Gu
|
9ecec5de0b
|
Add a base class for HttpClient and HttpSslClient to eliminate duplicate code.
|
7 years ago |
Chunting Gu
|
3e60c76da1
|
Allow to set buffer size for client; don't auto adjust reading buffer size; refine the global definitions.
|
7 years ago |