client

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 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

func SetGeekBangHeaders added in v0.2.3

func SetGeekBangHeaders(client *resty.Client)

SetGeekBangHeaders set geektime related headers

Types

This section is empty.

Jump to

Keyboard shortcuts

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