spider

package
v0.0.0-...-d4bf2a5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

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

数据请求的类型

func NewRequest

func NewRequest(httpReq *http.Request, depth uint32) *Request

用于创建一个新的请求实例

func (*Request) Depth

func (req *Request) Depth() uint32

用于获取请求的深度

func (*Request) HTTPReq

func (req *Request) HTTPReq() *http.Request

用于获取 HTTP 请求

type Response

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

数据响应的类型

func NewResponse

func NewResponse(httpResp *http.Response, depth uint32) *Response

用于创建一个新的响应实例

func (*Response) Depth

func (resp *Response) Depth() uint32

用于获取响应深度

func (*Response) HTTPResp

func (resp *Response) HTTPResp() *http.Response

用于获取HTTP响应

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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