resty

package module
v2.0.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Index

Constants

View Source
const (
	HeaderAccept    = "Accept"
	HeaderUserAgent = "User-Agent"
)
View Source
const (
	MIMEApplicationJSON = "application/json"
	MIMEApplicationXML  = "application/xml"
)
View Source
const (
	UAWindowsChrome = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
	UAWindowsEdge   = "" /* 129-byte string literal not displayed */
	UAMacOSChrome   = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
	UAMacOSSafari   = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15"
	UAAndroidChrome = "Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.66 Mobile Safari/537.36"
	UAIOSSafari     = "" /* 135-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func WithAccept

func WithAccept(accept string) rOptionI

func WithUserAgent

func WithUserAgent(useragent string) rOptionI

Types

type Client

type Client = resty.Client

func C

func C() *Client

type Request

type Request = resty.Request

func R

func R(ros ...rOptionI) *Request

type Response

type Response = resty.Response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL