libhttpserver icon indicating copy to clipboard operation
libhttpserver copied to clipboard

Added a get-method for the content of a string_response

Open hsiegmund opened this issue 2 years ago • 1 comments
trafficstars

Description of the Change

Added a getter for the content of a string_response. Example usage: a custom logger that shall log the content.

Release Notes

Added a get-method for the content of a string_response.

hsiegmund avatar May 02 '23 10:05 hsiegmund

I am not against having a get_content (or something of the likes) as part of the http_response, possibly to benefit logging. In the current approach though, this covers only string_response and I am not sure why this variant of the http_response should have different treatment from the rest.

I would propose we build something that can be reuse across all types of responses.

etr avatar May 05 '23 22:05 etr