Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlockedHostnames = map[string]struct{}{
"www.pixiv.net": {},
}
BlockedHostnames constains hosts that blocked by sni detect.
View Source
var Default = &Client{}
Default client auto login with PIXIV_PHPSESSID env var.
View Source
var Hosts = map[string]string{}
Hosts cache
Functions ¶
Types ¶
type BypassSNIBlockingTransport ¶ added in v0.3.2
type BypassSNIBlockingTransport struct {
// contains filtered or unexported fields
}
BypassSNIBlockingTransport bypass sni bloking when host in BlockedHostnames
type Client ¶ added in v0.2.0
Client to send request to pixiv server.
func (*Client) BypassSNIBlocking ¶ added in v0.3.2
func (c *Client) BypassSNIBlocking()
BypassSNIBlocking wrap current transport with bypass sni blocking support. SECURITY WARNING: TLS verification will be disabled for blocked site.
func (Client) EndpointURL ¶ added in v0.2.0
EndpointURL returns url for server endpint.
func (Client) IsLoggedIn ¶ added in v0.2.0
IsLoggedIn checks login status base on `HEAD https://www.pixiv.net/setting_user.php` response status.
func (*Client) SetPHPSESSID ¶ added in v0.2.0
SetPHPSESSID set client cookie to skip login.
Click to show internal directories.
Click to hide internal directories.