http

package
v0.0.0-...-a727419 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*websocket.Client
	H    *http.Client
	Host string
}

func NewClient

func NewClient(c *websocket.Client, host string) *Client

func (*Client) Request

func (c *Client) Request(method, url string, input []byte, encrypted bool, m ...http.Header) *Response

type Response

type Response struct {
	Raw    *http.Response
	Signed int8
	Body   []byte
	Status int
	Ok     bool
	Error  error
	JSON   map[string]any
}

Jump to

Keyboard shortcuts

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