client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 8 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 {
	Client *http.Client
}

func NewClient

func NewClient(timeout int) Client

func (*Client) BodyToString

func (c *Client) BodyToString(body io.ReadCloser) (string, error)

func (*Client) GetTranslateTextWithSplitBody

func (c *Client) GetTranslateTextWithSplitBody(body string) (string, error)

func (*Client) KdialogMessageBody

func (c *Client) KdialogMessageBody(body string, config config.Config) string

func (*Client) NewGetRequest

func (c *Client) NewGetRequest(url string, headers map[string]string) (*http.Request, error)

func (*Client) UrlQueryEncode

func (c *Client) UrlQueryEncode(text string) string

Jump to

Keyboard shortcuts

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