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"> -[![Build Status](https://travis-ci.org/monaco-io/request.svg?branch=master)](https://travis-ci.org/monaco-io/request) [![GoDoc](https://godoc.org/github.com/monaco-io/request?status.svg)](https://pkg.go.dev/github.com/monaco-io/request?tab=doc) [![codecov](https://codecov.io/gh/monaco-io/request/branch/master/graph/badge.svg)](https://codecov.io/gh/monaco-io/request) [![Release](https://img.shields.io/github/release/monaco-io/request.svg?style=flat-square)](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) |