go-mstdn/api/v1/streaming/public/local/dial.go

23 lines
316 B
Go
Raw Normal View History

2024-08-06 22:49:22 +00:00
package local
import (
"net/http"
"net/url"
"github.com/reiver/go-httpsse"
)
func DialHost(host string) (Client, error) {
var urloc = url.URL{
Scheme:"https",
Host:host,
Path:Path,
}
return httpsse.DialURL(urloc.String())
}
func Dial(req *http.Request) (Client, error) {
return httpsse.Dial(req)
}