Documentation
¶
Overview ¶
* @Author: jffan * @Date: 2024-07-29 14:56:25 * @LastEditTime: 2024-07-29 15:23:49 * @LastEditors: jffan * @FilePath: \tcas-cli\utils\request\request.go * @Description: Copyright © 2024 <jffan@nanhulab.ac.cn>
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
Headers map[string]string
Query map[string]string
Body interface{}
}
Request is a struct to hold request parameters
func NewRequest ¶
NewRequest creates a new Request instance
func (*Request) DoWithBody ¶
DoWithBody sends the request and returns the response with body as an interface{}
Click to show internal directories.
Click to hide internal directories.