Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + const AUTHORIZATION + const BCE_ACL + const BCE_CONTENT_CRC32 + const BCE_CONTENT_SHA256 + const BCE_COPY_METADATA_DIRECTIVE + const BCE_COPY_SOURCE + const BCE_COPY_SOURCE_IF_MATCH + const BCE_COPY_SOURCE_IF_MODIFIED_SINCE + const BCE_COPY_SOURCE_IF_NONE_MATCH + const BCE_COPY_SOURCE_IF_UNMODIFIED_SINCE + const BCE_COPY_SOURCE_RANGE + const BCE_DATE + const BCE_DEBUG_ID + const BCE_GRANT_FULL_CONTROL + const BCE_GRANT_READ + const BCE_NEXT_APPEND_OFFSET + const BCE_OBJECT_TYPE + const BCE_PREFIX + const BCE_PROCESS + const BCE_REQUEST_ID + const BCE_RESTORE_DAYS + const BCE_RESTORE_TIER + const BCE_SECURITY_TOKEN + const BCE_STORAGE_CLASS + const BCE_USER_METADATA_PREFIX + const CACHE_CONTROL + const CONTENT_DISPOSITION + const CONTENT_ENCODING + const CONTENT_LANGUAGE + const CONTENT_LENGTH + const CONTENT_MD5 + const CONTENT_RANGE + const CONTENT_TYPE + const DATE + const DELETE + const ETAG + const EXPIRES + const GET + const HEAD + const HOST + const LAST_MODIFIED + const LOCATION + const POST + const PUT + const RANGE + const SERVER + const TRANSFER_ENCODING + const USER_AGENT + type Request struct + func (r *Request) Body() io.ReadCloser + func (r *Request) Endpoint() string + func (r *Request) GenerateUrl(addPort bool) string + func (r *Request) Header(key string) string + func (r *Request) Headers() map[string]string + func (r *Request) Host() string + func (r *Request) Length() int64 + func (r *Request) Method() string + func (r *Request) Param(key string) string + func (r *Request) Params() map[string]string + func (r *Request) Port() int + func (r *Request) Protocol() string + func (r *Request) ProxyUrl() string + func (r *Request) QueryString() string + func (r *Request) SetBody(stream io.ReadCloser) + func (r *Request) SetEndpoint(endpoint string) + func (r *Request) SetHeader(key, value string) + func (r *Request) SetHeaders(headers map[string]string) + func (r *Request) SetHost(host string) + func (r *Request) SetLength(l int64) + func (r *Request) SetMethod(method string) + func (r *Request) SetParam(key, value string) + func (r *Request) SetParams(params map[string]string) + func (r *Request) SetPort(port int) + func (r *Request) SetProtocol(protocol string) + func (r *Request) SetProxyUrl(url string) + func (r *Request) SetTimeout(timeout int) + func (r *Request) SetUri(uri string) + func (r *Request) String() string + func (r *Request) Timeout() int + func (r *Request) Uri() string + type Response struct + func Execute(request *Request) (*Response, error) + func (r *Response) Body() io.ReadCloser + func (r *Response) ContentLength() int64 + func (r *Response) ElapsedTime() time.Duration + func (r *Response) GetHeader(name string) string + func (r *Response) GetHeaders() map[string]string + func (r *Response) HttpResponse() *http.Response + func (r *Response) Protocol() string + func (r *Response) SetHttpResponse(response *http.Response) + func (r *Response) StatusCode() int + func (r *Response) StatusText() string