client

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36"

UserAgent is Web browser User Agent

Variables

This section is empty.

Functions

func New

func New() *resty.Client

New ...

func NewNoParseResponseRestyClient

func NewNoParseResponseRestyClient() *resty.Client

NewNoParseResponseRestyClient new Http Client with SetDoNotParseResponse option, used for download video

func NewTimeGeekAccountRestyClient

func NewTimeGeekAccountRestyClient() *resty.Client

NewTimeGeekAccountRestyClient new Http Client with geekbang account domain

func NewTimeGeekRestyClient

func NewTimeGeekRestyClient(cookies []*http.Cookie) *resty.Client

NewTimeGeekRestyClient new Http Client with user auth cookies

Types

This section is empty.

Jump to

Keyboard shortcuts

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