Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonResponse ¶
type JsonResponse struct {
Status string `json:"status"`
StatusCode int `json:"statusCode"`
Headers map[string][]string `json:"headers"`
Body interface{} `json:"body,omitempty"`
RawBody string `json:"rawBody"`
}
func FormatJSONResponse ¶
func FormatJSONResponse(resp *http.Response) (JsonResponse, error)
func (JsonResponse) CliRender ¶
func (r JsonResponse) CliRender() string
Click to show internal directories.
Click to hide internal directories.