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
feature: HAR object endpoint for testing #834
Comments
I'm not personally familiar with HAR, what would it do to next level of details, is it just like a JSON version of debug? that could be an option/good idea for debug to take an param or react to Accept-Encoding:json ? |
@ldemailly Hmm. my brain said I commented, obviously I didn't 😅. Sorry for the late reply then. Exacly, HAR is just a specification on to turn a HTTP request into JSON. I'm not sure on how this is best exposed, like you mentioned I the following options exist
I don't have a strong preference here, I'm mostly leaning towards 2 or 1 then 3. |
There appears to be a well maintained Go library for converting a http.Request into a HAR encoded JSON. Although, I'm not sure what Fortio's standpoint is on importing libraries, I would suggest at least checking it out and it's implementation. The library is also published under the Apache License 2.0. |
Thanks! (and again github fails to surface updates to issues, sorry) |
@ldemailly any thoughts on how to move forward here. Happy to provide a PR the only two questions open to me are
|
I would like to use fortio for testing of an API gateway. It already provides a lot of the capabilities I desire, one feature that is/seems to be missing and would make automated testing easier, is an endpoint that returns the request as and HAR object similar to /debug. This endpoint could then be used for verifying that request modifications are as expected without requiring another tool like mockbin.
Is this something the fortio team would consider to be added? I'm also happy to provide a PR if wanted, just wanted to get a sense of the water (:
The text was updated successfully, but these errors were encountered: