Skip to content

Commit

Permalink
feat(http): Add Http Client Service Interface Functions
Browse files Browse the repository at this point in the history
- Add Get(string, net.Header) ([]byte, error)
- Add Post(string, interface{}, net.Header) ([]byte, error)
  • Loading branch information
mushoffa committed Apr 21, 2022
1 parent 2cc17a7 commit 2211727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const (
)

type HttpClientService interface {

Get(string, net.Header) ([]byte, error)
Post(string, interface{}, net.Header) ([]byte, error)
}

type HttpClient struct {
Expand Down

0 comments on commit 2211727

Please sign in to comment.