Documentation ¶
Index ¶
- Constants
- Variables
- func AddHeaderByFlag(r *http.Request) error
- func DoFileRequest(ctx context.Context, path string, payload io.Reader, contentType string) (response *http.Response, error error)
- func DoRequest(ctx context.Context, method string, path string, query string, ...) (response *http.Response, error error)
- func EncodeForm(values map[string]string, filename string, paramName string, ...) (byteBuf *bytes.Buffer, contentType string, err error)
Constants ¶
View Source
const EnvNameHttpPrefix = "EPCC_CLI_HTTP_HEADER_"
Variables ¶
View Source
var HttpClient = &http.Client{ Timeout: time.Second * 10, }
Functions ¶
func AddHeaderByFlag ¶
func DoFileRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.