henvic / httpretty

Package httpretty prints the HTTP requests you make with Go pretty on your terminal.
https://asciinema.org/a/297429
MIT License
402 stars 16 forks source link

Support for fasthttp #28

Closed codecat closed 2 months ago

codecat commented 2 months ago

It would be great if this supported fasthttp as well. That way we can use it with frameworks such as Fiber.

henvic commented 2 months ago

Sorry, but I've no interest in adding or maintaining support or compatibility with fasthttp. It'd be too much of a hassle to do so, but the main reason why I don't plan to do so is because fasthttp doesn't implement the HTTP protocol properly and is very problematic.

Also, I think it's worth to mention that the main problem fasthttp tries to solve (performance at the router-level) is generally not where the bottleneck of an application lies, and I believe most people using it doesn't take advantage of its purposed advantages.

codecat commented 2 months ago

I read the Reddit thread you linked and I guess the big problem with it is mostly the Go API differences that makes it incompatible with the Go http API.

Unfortunate, but understandable. Thanks for answering 😊

henvic commented 2 months ago

You're welcome!