xhttp

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func NewConnector

func NewConnector(method MethodType, uri string) *Connector

func (*Connector) FORM

func (c *Connector) FORM(keyValue, additionalHeader map[string]string) (string, error)

func (*Connector) HTML

func (c *Connector) HTML(html string, additionalHeader map[string]string) (string, error)

func (*Connector) JSON

func (c *Connector) JSON(jsonString string, additionalHeader map[string]string) (string, error)

func (*Connector) MULTIPART

func (c *Connector) MULTIPART(filePath string, keyValue, additionalHeader map[string]string) (string, error)

func (*Connector) TEXT

func (c *Connector) TEXT(text string, additionalHeader map[string]string) (string, error)

type MethodType

type MethodType string
const (
	GET    MethodType = "GET"
	POST   MethodType = "POST"
	DELETE MethodType = "DELETE"
)

Jump to

Keyboard shortcuts

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