headers

package
v0.0.0-...-d57f268 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SNAPCHAT_USER_AGENT = "SnapchatWeb/12.38.0 PROD (linux 0.0.0; chrome 113.0.0.0)"
View Source
var USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"

Functions

func ConvertAuthSessionToCookieString

func ConvertAuthSessionToCookieString(authSession *types.SnapCookies) string

func NewCoreHeaders

func NewCoreHeaders(cookies *types.SnapCookies, tokens *types.SnapTokens, deviceInfo string) http.Header

DO NOT REMOVE THE REFERERS/ORIGINS they are needed

func NewDefaultHeaders

func NewDefaultHeaders(cookies *types.SnapCookies, tokens *types.SnapTokens, withAuth bool) http.Header

DO NOT REMOVE THE REFERERS/ORIGINS they are needed

func NewServiceHeaders

func NewServiceHeaders(cookies *types.SnapCookies, tokens *types.SnapTokens, withSnapAgent bool, withDeviceInfo bool) http.Header

DO NOT REMOVE THE REFERERS/ORIGINS they are needed

Types

This section is empty.

Jump to

Keyboard shortcuts

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