Documentation ¶
Index ¶
- Constants
- func DuplexConnect(httpClient *http.Client, headers []KeyValue, uploadUrl, downloadUrl string) (*pipingDuplex, error)
- func DuplexConnectWithHandlers(post postHandler, get getHandler) (*pipingDuplex, error)
- func HandleDuplex(httpClient *http.Client, duplex io.ReadWriteCloser, headers []KeyValue, ...) error
- func PipingGet(httpClient *http.Client, headers []KeyValue, downloadUrl string) (*http.Response, error)
- func PipingGetWithContext(ctx context.Context, httpClient *http.Client, headers []KeyValue, ...) (*http.Response, error)
- func PipingSend(httpClient *http.Client, headers []KeyValue, uploadUrl string, ...) (*http.Response, error)
- func PipingSendWithContext(ctx context.Context, httpClient *http.Client, headers []KeyValue, ...) (*http.Response, error)
- type KeyValue
Constants ¶
View Source
const ( CipherTypeOpenpgp string = "openpgp" CipherTypeAesCtr = "aes-ctr" CipherTypeOpensslAes128Ctr = "openssl-aes-128-ctr" CipherTypeOpensslAes256Ctr = "openssl-aes-256-ctr" )
Variables ¶
This section is empty.
Functions ¶
func DuplexConnect ¶
func DuplexConnectWithHandlers ¶
func DuplexConnectWithHandlers(post postHandler, get getHandler) (*pipingDuplex, error)
func HandleDuplex ¶
func HandleDuplex(httpClient *http.Client, duplex io.ReadWriteCloser, headers []KeyValue, uploadUrl string, downloadUrl string, downloadBufSize uint, arriveCh chan<- struct{}, showProgress bool, makeProgressMessage func(progress *io_progress.IOProgress) string) error
NOTE: duplex is usually conn
func PipingGetWithContext ¶
func PipingSend ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.