Sha256: c8a0f63c43a1a615c0b6078dd7c8619ac4ec09285fb93abdb81b869edf6a6203
Contents?: true
Size: 933 Bytes
Versions: 16
Compression:
Stored size: 933 Bytes
Contents
// Copyright (c) 2021-2022 Snowflake Computing Inc. All rights reserved. package gosnowflake import ( "context" "net/http" "net/url" "time" ) // InternalClient is implemented by HTTPClient type InternalClient interface { Get(context.Context, *url.URL, map[string]string, time.Duration) (*http.Response, error) Post(context.Context, *url.URL, map[string]string, []byte, time.Duration, bool) (*http.Response, error) } type httpClient struct { sr *snowflakeRestful } func (cli *httpClient) Get( ctx context.Context, url *url.URL, headers map[string]string, timeout time.Duration) (*http.Response, error) { return cli.sr.FuncGet(ctx, cli.sr, url, headers, timeout) } func (cli *httpClient) Post( ctx context.Context, url *url.URL, headers map[string]string, body []byte, timeout time.Duration, raise4xx bool) (*http.Response, error) { return cli.sr.FuncPost(ctx, cli.sr, url, headers, body, timeout, raise4xx) }
Version data entries
16 entries across 16 versions & 1 rubygems