jfroghttpclient

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JfrogClientBuilder

func JfrogClientBuilder() *jfrogHttpClientBuilder

Types

type JfrogHttpClient

type JfrogHttpClient struct {
	// contains filtered or unexported fields
}

func (*JfrogHttpClient) DownloadFile

func (rtc *JfrogHttpClient) DownloadFile(downloadFileDetails *httpclient.DownloadFileDetails, logMsgPrefix string,
	httpClientsDetails *httputils.HttpClientDetails, isExplode bool) (resp *http.Response, err error)

func (*JfrogHttpClient) DownloadFileConcurrently

func (rtc *JfrogHttpClient) DownloadFileConcurrently(flags httpclient.ConcurrentDownloadFlags,
	logMsgPrefix string, httpClientsDetails *httputils.HttpClientDetails, progress ioutils.ProgressMgr) (resp *http.Response, err error)

func (*JfrogHttpClient) DownloadFileWithProgress

func (rtc *JfrogHttpClient) DownloadFileWithProgress(downloadFileDetails *httpclient.DownloadFileDetails, logMsgPrefix string,
	httpClientsDetails *httputils.HttpClientDetails, isExplode bool, progress ioutils.ProgressMgr) (resp *http.Response, err error)

func (*JfrogHttpClient) GetHttpClient added in v0.25.0

func (rtc *JfrogHttpClient) GetHttpClient() *httpclient.HttpClient

func (*JfrogHttpClient) IsAcceptRanges

func (rtc *JfrogHttpClient) IsAcceptRanges(downloadUrl string, httpClientsDetails *httputils.HttpClientDetails) (isAcceptRanges bool, resp *http.Response, err error)

func (*JfrogHttpClient) ReadRemoteFile

func (rtc *JfrogHttpClient) ReadRemoteFile(downloadPath string, httpClientsDetails *httputils.HttpClientDetails) (ioReaderCloser io.ReadCloser, resp *http.Response, err error)

func (*JfrogHttpClient) Send

func (rtc *JfrogHttpClient) Send(method string, url string, content []byte, followRedirect bool, closeBody bool,
	httpClientsDetails *httputils.HttpClientDetails, logMsgPrefix string) (resp *http.Response, respBody []byte, redirectUrl string, err error)

func (*JfrogHttpClient) SendDelete

func (rtc *JfrogHttpClient) SendDelete(url string, content []byte, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) SendGet

func (rtc *JfrogHttpClient) SendGet(url string, followRedirect bool, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, respBody []byte, redirectUrl string, err error)

func (*JfrogHttpClient) SendHead

func (rtc *JfrogHttpClient) SendHead(url string, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) SendPatch

func (rtc *JfrogHttpClient) SendPatch(url string, content []byte, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) SendPost

func (rtc *JfrogHttpClient) SendPost(url string, content []byte, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) SendPostForm

func (rtc *JfrogHttpClient) SendPostForm(url string, data url.Values, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) SendPostLeaveBodyOpen

func (rtc *JfrogHttpClient) SendPostLeaveBodyOpen(url string, content []byte, httpClientsDetails *httputils.HttpClientDetails) (*http.Response, error)

func (*JfrogHttpClient) SendPut

func (rtc *JfrogHttpClient) SendPut(url string, content []byte, httpClientsDetails *httputils.HttpClientDetails) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) UploadFile

func (rtc *JfrogHttpClient) UploadFile(localPath, url, logMsgPrefix string, httpClientsDetails *httputils.HttpClientDetails,
	progress ioutils.ProgressMgr) (resp *http.Response, body []byte, err error)

func (*JfrogHttpClient) UploadFileFromReader added in v0.20.1

func (rtc *JfrogHttpClient) UploadFileFromReader(reader io.Reader, url string, httpClientsDetails *httputils.HttpClientDetails,
	size int64) (resp *http.Response, body []byte, err error)

type PreRequestInterceptorFunc added in v0.21.0

type PreRequestInterceptorFunc func(clientDetails *httputils.HttpClientDetails) error

Implement this function and append it to create an interceptor that will run before sending the request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL