Commit Graph

7 Commits (45be48a4ee92d151318c9961475fc80fa9a97039)

Author SHA1 Message Date
Kevin Wan 3bbc90ec24
refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal

* refactor: use header.ContentType
3 years ago
Kevin Wan 50de01fb49
feat: add httpc.Do & httpc.Service.Do (#1775)
* backup

* backup

* backup

* feat: add httpc.Do & httpc.Service.Do

* fix: not using strings.Cut, it's from Go 1.18

* chore: remove redudant code

* feat: httpc.Do finished

* chore: fix reviewdog

* chore: break loop if found

* add more tests
3 years ago
Kevin Wan 78ea0769fd
feat: simplify httpc (#1748)
* feat: simplify httpc

* chore: fix lint errors

* chore: fix log url issue

* chore: fix log url issue

* refactor: handle resp & err in ResponseHandler

* chore: remove unnecessary var names in return clause
3 years ago
Kevin Wan c1d9e6a00b
feat: add httpc.Parse (#1698) 3 years ago
Kevin Wan f9e6013a6c
refactor: httpc package for easy to use (#1645) 3 years ago
Kevin Wan b5d1d8b0d1
refactor: httpc package for easy to use (#1643) 3 years ago
Kevin Wan 2a5717d7fb
feat: add httpc/Service for convinience (#1641) 3 years ago