2018-11-18 16:32:53 +00:00
|
|
|
// Package http returns a http2 transport using net/http
|
2016-03-14 10:45:38 +00:00
|
|
|
package http
|
|
|
|
|
|
|
|
import (
|
2020-07-27 13:22:00 +01:00
|
|
|
"github.com/micro/go-micro/v3/transport"
|
2016-03-14 10:45:38 +00:00
|
|
|
)
|
|
|
|
|
2018-11-18 16:32:53 +00:00
|
|
|
// NewTransport returns a new http transport using net/http and supporting http2
|
2016-03-15 22:25:32 +00:00
|
|
|
func NewTransport(opts ...transport.Option) transport.Transport {
|
|
|
|
return transport.NewTransport(opts...)
|
2016-03-14 10:45:38 +00:00
|
|
|
}
|