diff options
author | Gary Kim <gary@garykim.dev> | 2020-07-18 22:08:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 16:08:25 +0200 |
commit | 71a5b72aff5159f3066ff100e1510d935ebdff85 (patch) | |
tree | f940bc6e7aa86e1ca818929fb4c2917983a32177 /vendor/github.com/monaco-io/request/doc.go | |
parent | 213bf349c319811c8cb5458ac24ad9e61c5bbe4d (diff) | |
download | matterbridge-msglm-71a5b72aff5159f3066ff100e1510d935ebdff85.tar.gz matterbridge-msglm-71a5b72aff5159f3066ff100e1510d935ebdff85.tar.bz2 matterbridge-msglm-71a5b72aff5159f3066ff100e1510d935ebdff85.zip |
Add Nextcloud Talk support (#1167)
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'vendor/github.com/monaco-io/request/doc.go')
-rw-r--r-- | vendor/github.com/monaco-io/request/doc.go | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/vendor/github.com/monaco-io/request/doc.go b/vendor/github.com/monaco-io/request/doc.go new file mode 100644 index 00000000..d2259131 --- /dev/null +++ b/vendor/github.com/monaco-io/request/doc.go @@ -0,0 +1,59 @@ +// Package request HTTP client for golang +// - Make http requests from Golang +// - Intercept request and response +// - Transform request and response data +// +// GET +// +// client := request.Client{ +// URL: "https://google.com", +// Method: "GET", +// Params: map[string]string{"hello": "world"}, +// } +// resp, err := client.Do() +// +// POST +// +// client := request.Client{ +// URL: "https://google.com", +// Method: "POST", +// Params: map[string]string{"hello": "world"}, +// Body: []byte(`{"hello": "world"}`), +// } +// resp, err := client.Do() +// +// Content-Type +// +// client := request.Client{ +// URL: "https://google.com", +// Method: "POST", +// ContentType: request.ApplicationXWwwFormURLEncoded, // default is "application/json" +// } +// resp, err := client.Do() +// +// Authorization +// +// client := request.Client{ +// URL: "https://google.com", +// Method: "POST", +// BasicAuth: request.BasicAuth{ +// Username:"user_xxx", +// Password:"pwd_xxx", +// }, // xxx:xxx +// } +// +// resp, err := client.Do() +// +// Cookies +// client := request.Client{ +// URL: "https://google.com", +// Cookies:[]*http.Cookie{ +// { +// Name: "cookie_name", +// Value: "cookie_value", +// }, +// }, +// } +// +// resp, err := client.Do() +package request |