Commit Graph

9 Commits

Author SHA1 Message Date
Eugene Kabanov e80546edf2
Add ability to handle REST server errors with custom responses. (#60)
* Add ability to handle REST server errors with custom responses.
Add tests.

* Fix chunked encoding issue.
Add test for chunked encoding.
2023-10-19 01:16:16 +03:00
Eugene Kabanov dceac3f5cc
Increase backlog defaults. (#54) 2023-08-01 13:28:25 +03:00
Eugene Kabanov d0ed144b9c
Rest client (#3)
* Separate some macro helper procedures to common module.
Initial commit for client.

* Arguments pre-processing and createPath() with tests.

* Further progress on arguments.

* Add method checks.

* REST client release candidate.

* Add redirection support to client requests.
Move all network logic to procedures.
Add first test.
Add PrestoIdent default to REST server and client.

* Add agent.

* Fix url encoding in request's path.

* Fix client url-encoding handling.
RestApiResponse become case-object.
Make `-d:nimDumpRest` the only one dumping procedure.
Add rest client tests.

* Add logging support.

* Bump chronos dependency version.
2021-05-10 11:28:58 +03:00
cheatfate 2f01c838c6
Finally address comment about processRestRequest().
Fix compiler warning for testbtrees.
2021-03-25 10:35:58 +02:00
cheatfate 670f68acd1
Attempt to address comment with processRestRequest[T]() procedure. 2021-03-25 10:05:59 +02:00
cheatfate 32085aa97b
Add SecureRestServer implementation and tests. 2021-03-24 15:52:11 +02:00
cheatfate ae185d2038
Fix presto to follow latest changes in chronos servers split. 2021-03-17 15:53:11 +02:00
cheatfate f2a51369d2
Change REST api error response to custom message with custom content-type. 2021-03-11 14:31:14 +02:00
cheatfate 9c9b061158
Initial implementation for review. 2021-03-02 15:50:16 +02:00