You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! As part of how I run things in my team, I like to have the option to enable a debug output that spits curl calls for every request out to the standard output of the machine. Here's an example of what this looks like. It would be quite simple to add this to the code generation process, and would even be a great option for somebody new to Open Source to complete.
The specification I suggest is the following.
Some mechanism for generating with http2curl should change a generation in goa to the following
add http2curl as a dependency if there is a request in the file. Replace any request generation with the following workflow
Add http2curl before the request
Add http2curl after the request
its not clear which of the above would be better.
But I think this would be awesome because:
it's optional.
it doesn't initially sound too difficult to achieve.
For our use case, lets us export and debug beginning with the http request for failures since postman lets you import curl.
http2curl is just a couple lines so this is not something you need any other development for
command, _ := http2curl.GetCurlCommand(req) fmt.Println(command) //Send Request right before or after any instance of response, err := http.Client.Do(req)
The text was updated successfully, but these errors were encountered:
Hello, this can be done by wrapping the HTTP client roundtripper similarly to how the clue log package does it to log client side requests and responses. Using this approach makes it possible add configuration option in particular for the formatting and output of the commands.
Alternatively it should be fairly simple to write a plugin that does exactly what is being suggested.
Hello! As part of how I run things in my team, I like to have the option to enable a debug output that spits curl calls for every request out to the standard output of the machine. Here's an example of what this looks like. It would be quite simple to add this to the code generation process, and would even be a great option for somebody new to Open Source to complete.
The specification I suggest is the following.
Some mechanism for generating with http2curl should change a generation in goa to the following
its not clear which of the above would be better.
But I think this would be awesome because:
command, _ := http2curl.GetCurlCommand(req) fmt.Println(command) //Send Request right before or after any instance of response, err := http.Client.Do(req)
The text was updated successfully, but these errors were encountered: