arcus-azure / arcus.testing

Reusable testing components used during Arcus testing.
https://testing.arcus-azure.net/
MIT License
5 stars 2 forks source link

`LoggedHttpMessageHandler`: implementation that tracks the HTTP request/response #175

Open stijnmoreels opened 1 month ago

stijnmoreels commented 1 month ago

Is your feature request related to a problem? Please describe. Logging the HTTP request/response is something that is very helpful and always required to have good defect localization in integration tests.

Describe the solution you'd like Create a LoggedHttpMessageHandler implementation of the HttpMessageHandler that writes a POST {Body} -> {Url} for the request and 202 Accepted {Body} <- {Url} for the response.

Additional context First included in the API Management library, but is actually pure HTTP-tech. It might be good that the HTTP headers to be included is configurable, and also have a max character threshold for the body.