New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete implementation of HTTPService #295
base: development
Are you sure you want to change the base?
Complete implementation of HTTPService #295
Conversation
arcadien
commented
Aug 9, 2018
- Enhance implementation of GET and POST method in HttpService
- Implement management of file upload using POST/multipart, following the Servlet(c) API
- Allow to provide options to CivetWeb when starting a ServletContainer
- Allow to run GTest in a HttpService-enabled environment
- Implement unit/functional tests for HttpService
9e21212
to
3da36b9
Compare
@saschazelzer it look we are not using the same clang-format version, since our 'format-source.sh' run has produced difference in source format. We are using clang-format 6.0.0. |
4a51b75
to
ce4846d
Compare
@arcadien This is strange, I am also using clang-format 6.0.0. Anyway, I don't care too much. You could just format the files you touched (or not format them at all) and we are going to re-format everything from time to time. This should not be a major source of pain. If you want help with the CI test errors, you could share what your current status is and we could try and help out. BTW, many thanks for working on this, it is much appreciated. |
2523bf7
to
f98f9c9
Compare
Codecov Report
@@ Coverage Diff @@
## development #295 +/- ##
===============================================
- Coverage 89.52% 84.49% -5.04%
===============================================
Files 89 108 +19
Lines 6274 7416 +1142
===============================================
+ Hits 5617 6266 +649
- Misses 657 1150 +493
|
@saschazelzer we will remove untouched files where syntax has been broken to have a more consistent pull request. Also, we will improve the test coverage on some HttpService components so that the total coverage does not decrease. |
f98f9c9
to
97268d8
Compare
5166abb
to
93cde3a
Compare
6b5efaf
to
70d6357
Compare
I will do my best for coverage enhancement here and keep the branch sync with your development tree. |
89851ba
to
fc302dc
Compare
fc302dc
to
d000885
Compare
f3e5427
to
69eb179
Compare
Signed-off-by: Aurélien Labrosse <aurelien@pollen-metrology.com>
* Implement POST HTTP method in HttpService (query params and file upload) * Implement GET HTTP query parameters management following Servlet(c) API * Implement PUT HTTP method * Implement HttpRequest#GetBody() to allow raw content processing * Implement management of file upload using POST/multipart, following the Servlet(c) API * Allow to specialize (and hence override methods off) HttpServletRequest and HttpServletResponse to allow easy unit testing of Servlet implementations * Allow to provide options to CivetWeb when starting a ServletContainer * Implement unit/functional tests for HttpService * Allow to run GTest in a HttpService-enabled environment * Unit-test various HTTP requests Signed-off-by: Mael Jannsen <mael.jannsen@pollen-metrology.com> Signed-off-by: Galil Mori <galil.mori@pollen-metrology.com> Signed-off-by: Lucas Freyssinet <lucas.freyssinet@pollen-metrology.com> Signed-off-by: Thibault Friedrich <thibault.friedrich@pollen-metrology.com> Signed-off-by: Aurélien Labrosse <aurelien@pollen-metrology.com>
* Light IContext is added to allow essentially mocking of the context. This allow to test modules using services without starting a full framework, injecting mock implementations in the context.
* HttpService main classes has been reified to interface to allow them to be mocked. This allow to test servlets implementation without the need of a complete framework to be started.
69eb179
to
7e12994
Compare
Hello @saschazelzer , long time no activity there. If interest is still here I can upgrade the pull request.
Let me know! |
referring to old discussion, i also switched on clang-format 15.0.6 |
Hi @arcadien , we would be happy to review any changes you have for this PR! |