Documentation
¶
Index ¶
- func DeleteRequest(name string) bool
- func GetBodyFromUser(method string) string
- func GetHeadersFromUser() map[string]string
- func ListRequests()
- func ParseHeaders(headersStr string) map[string]string
- func SaveRequest(name, url, method string, headers map[string]string, body string)
- func SendRequest(url, method string, headers map[string]string, body []byte)
- type APIRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteRequest ¶
func GetBodyFromUser ¶
GetBodyFromUser prompts the user to enter a request body if required
func GetHeadersFromUser ¶
GetHeadersFromUser prompts the user to enter headers interactively
func ParseHeaders ¶
ParseHeaders converts a JSON string into a `map[string]string`
func SaveRequest ¶
Types ¶
type APIRequest ¶
type APIRequest struct {
URL string `json:"url"`
Method string `json:"method"`
Headers map[string]string `json:"headers"`
Body string `json:"body"`
}
func LoadRequest ¶
func LoadRequest(name string) (APIRequest, bool)
Click to show internal directories.
Click to hide internal directories.