netreq

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package netreq 网络请求相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Method    string
	URL       string
	Header    map[string]string
	Body      io.Reader
	Transport http.RoundTripper
}

Request 请求结构体

func (Request) GetRespBodyBytes

func (r Request) GetRespBodyBytes() ([]byte, error)

GetRespBodyBytes 向给定URL 发送请求,返回响应体Byte

func (Request) GetRespBodyJSON

func (r Request) GetRespBodyJSON() (*gjson.Result, error)

GetRespBodyJSON 向给定URL 发送请求,响应转换成JSON

Directories

Path Synopsis
Package bf1reqbody 战地服务器操作请求body
Package bf1reqbody 战地服务器操作请求body

Jump to

Keyboard shortcuts

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