req

package
v0.0.0-...-906d765 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(path string) ([]string, error)

List a requests with config file

Types

type Request

type Request struct {
	Name    string      `json:"name"`
	URL     string      `json:"url"`
	Method  string      `json:"method"`
	Headers []string    `json:"headers"`
	Body    interface{} `json:"body"`
	Output  string      `json:"output"`
}

Request define requests in .req.json

type Result

type Result struct {
	Output    string
	IsCommand bool
}

func Send

func Send(names []string, path string) ([]Result, error)

Send a request with config file

Jump to

Keyboard shortcuts

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