add ability to send headers and cookies

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-10-25 19:59:37 +03:00
parent 4fe11b430e
commit fd5479f6e7
11 changed files with 192 additions and 83 deletions

View File

@@ -5,14 +5,14 @@ This plugin is a http client for micro.
## Overview
The http client wraps `net/http` to provide a robust micro client with service discovery, load balancing and streaming.
It complies with the [micro.Client](https://godoc.org/github.com/unistack-org/micro-client-http#Client) interface.
It complies with the [micro.Client](https://godoc.org/go.unistack.org/micro-client-http/v3#Client) interface.
## Usage
### Use directly
```go
import "github.com/unistack-org/micro-client-http"
import "go.unistack.org/micro-client-http/v3"
service := micro.NewService(
micro.Name("my.service"),