diff options
Diffstat (limited to 'vendor/github.com/monaco-io/request/README.md')
-rw-r--r-- | vendor/github.com/monaco-io/request/README.md | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/vendor/github.com/monaco-io/request/README.md b/vendor/github.com/monaco-io/request/README.md index 7ac32be0..153dbeaf 100644 --- a/vendor/github.com/monaco-io/request/README.md +++ b/vendor/github.com/monaco-io/request/README.md @@ -2,7 +2,6 @@ <img align="right" width="159px" src="https://raw.githubusercontent.com/gin-gonic/logo/master/color.png"> -[](https://travis-ci.org/monaco-io/request) [](https://pkg.go.dev/github.com/monaco-io/request?tab=doc) [](https://codecov.io/gh/monaco-io/request) [](https://github.com/monaco-io/request/releases) @@ -192,6 +191,31 @@ func main() { } ``` + +### TLS + +```go +package main + +import ( + "log" + "crypto/tls" + + "github.com/monaco-io/request" +) + +func main() { + client := request.Client{ + URL: "https://google.com", + TLSConfig: &tls.Config{InsecureSkipVerify: true}, + } + + resp, err := client.Do() + + log.Println(resp.Code, string(resp.Data), err) +} +``` + ## License [MIT](LICENSE) |