Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Cookie ¶
type Cookie struct {
Name string `json:"name" validate:"required"`
Value string `json:"value" validate:"required"`
}
Cookie Although the struct http.Cookie does exist, it does not contain JSON serialization keys, hence the need for a custom type
type Endpoint ¶
type Endpoint struct {
Name string `json:"name" validate:"required"`
Path string `json:"path" validate:"required"`
Method string `json:"method" validate:"oneof=GET POST PUT HEAD DELETE OPTIONS PATCH"`
Headers []Header `json:"headers"`
Cookies []Cookie `json:"cookies"`
Jar []Cookie `json:"jar"`
Body interface{} `json:"body"`
BodyFile string `json:"bodyFile"`
AcceptStatus []uint16 `json:"acceptStatus" validate:"required"`
SaveResponse string `json:"saveResponse"`
Schema string `json:"schema"`
}
Click to show internal directories.
Click to hide internal directories.