4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-07 18:14:03 +00:00

Add Nextcloud Talk support (#1167)

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim
2020-07-18 22:08:25 +08:00
committed by GitHub
parent 213bf349c3
commit 71a5b72aff
33 changed files with 1473 additions and 1 deletions

36
vendor/github.com/monaco-io/request/url.go generated vendored Normal file
View File

@ -0,0 +1,36 @@
package request
import "net/url"
type requestURL struct {
httpURL *url.URL
urlString string
parameters map[string]string
}
// EncodeURL add and encoded parameters.
func (ru *requestURL) EncodeURL() (err error) {
ru.httpURL, err = url.Parse(ru.urlString)
if err != nil {
return err
}
query := ru.httpURL.Query()
for k := range ru.parameters {
query.Set(k, ru.parameters[k])
}
ru.httpURL.RawQuery = query.Encode()
return err
}
// String return example: https://www.google.com/search?a=1&b=2
func (ru requestURL) string() string {
return ru.httpURL.String()
}
func (ru requestURL) scheme() string {
return ru.httpURL.Scheme
}
func (ru requestURL) host() string {
return ru.httpURL.Host
}