Source File
resty.go
Belonging Package
github.com/go-resty/resty/v2
// Copyright (c) 2015-2023 Jeevanandam M (jeeva@myjeeva.com), All rights reserved.// resty source code and usage is governed by a MIT style// license that can be found in the LICENSE file.// Package resty provides Simple HTTP and REST client library for Go.package restyimport ()// Version # of restyconst Version = "2.10.0"// New method creates a new Resty client.func () *Client {, := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})return createClient(&http.Client{Jar: ,})}// NewWithClient method creates a new Resty client with given `http.Client`.func ( *http.Client) *Client {return createClient()}// NewWithLocalAddr method creates a new Resty client with given Local Address// to dial from.func ( net.Addr) *Client {, := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})return createClient(&http.Client{Jar: ,Transport: createTransport(),})}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |