httpclient

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpHTTPClientEx added in v0.1.2

type ImpHTTPClientEx struct {
	markup.Component `id:"HTTPClientExService"`

	HTTPClientService service.HTTPClientService `inject:"#HTTPClientService"`
}

ImpHTTPClientEx ...

func (*ImpHTTPClientEx) FetchOnlineDoc added in v0.1.2

func (inst *ImpHTTPClientEx) FetchOnlineDoc(ctx context.Context, url string, opt *service.HTTPClientOptions) (*vo.Online, error)

FetchOnlineDoc ...

type ImpHTTPClientService

type ImpHTTPClientService struct {
	markup.Component `id:"HTTPClientService"`

	AC application.Context       `inject:"context"`
	FS service.FileSystemService `inject:"#FileSystemService"`

	MaxContentLength int `inject:"${wpm.httpclient.max-content-length}"`
}

ImpHTTPClientService ....

func (*ImpHTTPClientService) FetchBinary

FetchBinary 通过 HTTP 协议获取二进制数据

func (*ImpHTTPClientService) FetchJSON

FetchJSON 通过 HTTP 协议获取 JSON 对象

func (*ImpHTTPClientService) FetchText

FetchText 通过 HTTP 协议获取文本

func (*ImpHTTPClientService) FetchToFile added in v0.1.8

FetchToFile ...

func (*ImpHTTPClientService) FetchToStream added in v0.1.8

FetchToStream ...

Jump to

Keyboard shortcuts

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