Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface { Delete() ([]byte, error) Get() ([]byte, error) Patch(body io.Reader) ([]byte, error) Post(body io.Reader) ([]byte, error) PostDicom(fieldName string, fileName string, content io.Reader) ([]byte, error) PostMulti(fieldName string, fileName string, content io.Reader) ([]byte, error) PostMultiContent(fieldName string, fileName string, contentType string, content io.Reader) ([]byte, error) Put(body io.Reader) ([]byte, error) }
HTTPClient interface
func NewHTTPClient ¶
func NewHTTPClient(params HTTPParams) HTTPClient
NewHTTPClient returns a new http client
type HTTPParams ¶
type HTTPParams struct { URL string Proxy string Timeout int64 URLAccessToken string ContentType string AcceptType string DisableCompression bool AuthorizationBearer string AuthorizationKey string AuthorizationToken string BasicAuthUser string BasicAuthPass string Headers map[string]string Queries map[string]string }
HTTPParams are connection parameters
Click to show internal directories.
Click to hide internal directories.