go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.89k stars 696 forks source link

Add clone method in `Request` #718

Open jeevatkm opened 11 months ago

jeevatkm commented 11 months ago

Discussed in https://github.com/go-resty/resty/discussions/588

Originally posted by **shotamakino** October 11, 2022 Hi, thank you for this great package! I am trying to clone a `Request` instance in order to reuse it again with a different set of query parameters (for pagination). I was wondering if there's some kind of support for a `Clone` method similar to https://pkg.go.dev/net/http#Request.Clone?