add option to set http handlers
This commit is contained in:
		| @@ -1,9 +1,11 @@ | ||||
| // Package http returns a http2 transport using net/http | ||||
| package http | ||||
|  | ||||
| import ( | ||||
| 	"github.com/micro/go-micro/transport" | ||||
| ) | ||||
|  | ||||
| // NewTransport returns a new http transport using net/http and supporting http2 | ||||
| func NewTransport(opts ...transport.Option) transport.Transport { | ||||
| 	return transport.NewTransport(opts...) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user