Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Contenttypes = map[string]string{
"html": "text/html",
"js": "application/json",
"xml": "application/xml",
"plain": "text/plain",
}
Contenttypes can be used in Place for ctypes
Functions ¶
func BasicRequestWithBody ¶ added in v0.0.5
BasicRequestWithBody sends put|patch|post|delete requests
Types ¶
type Colls ¶
type Colls struct { Name string `json:"name"` Folders []string `json:"folders"` Request []Reqdata `json:"requests"` }
Colls hold the structure of the basic `postwoman-collection.json`
type Reqdata ¶
type Reqdata struct { URL string `json:"url"` Path string `json:"path"` Method string `json:"method"` Auth string `json:"auth"` User string `json:"httpUser"` Pass string `json:"httpPassword"` Token string `json:"bearerToken"` Ctype string `json:"contentType"` Name string `json:"name"` Heads []string `json:"headers"` Params []string `json:"params"` Bparams []Bpardata `json:"bodyParams"` }
Reqdata hold the format of the request part in `postwoman-collection.json`
Click to show internal directories.
Click to hide internal directories.