1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/plugins/transport/http/http.go

12 lines
317 B
Go
Raw Normal View History

2020-12-26 17:32:45 +02:00
// Package http returns a http2 transport using net/http
package http
import (
2021-01-20 23:01:10 +02:00
"github.com/asim/go-micro/v3/transport"
2020-12-26 17:32:45 +02:00
)
// NewTransport returns a new http transport using net/http and supporting http2
func NewTransport(opts ...transport.Option) transport.Transport {
2020-12-29 17:49:26 +02:00
return transport.NewHTTPTransport(opts...)
2020-12-26 17:32:45 +02:00
}