alexedwards / flow

A delightfully tiny but powerful HTTP router for Go web applications
MIT License
375 stars 19 forks source link

any interest in generating the http.Request for the client side? #7

Closed marco-m closed 1 year ago

marco-m commented 1 year ago

Like for example rata.NewRequestGenerator(), see https://github.com/tedsuo/rata If not, how would you suggest implementing the client side of an API? thanks!

alexedwards commented 1 year ago

Hi,

I don't think so, it's not a feature that I can imagine personally using and I'd rather keep this package small and focused.

For the client side of an API, I'd use the regular http.NewRequest function from the standard library and construct the URLs manually.