crash.software
Projects
Pull Requests
Issues
Builds
graphql-engine
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
graphql-engine
Files
🤬
Sign In
release/v2.36
ROOT
/
cli
/
internal
/
httpc
/
httpc.go
Search
History
194 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Client
client
:
*http.Client
Mutex
:
sync.Mutex
BaseURL
:
*url.URL
UserAgent
:
string
headers
:
map[string]string
New
(httpClient *http.Client, baseUrl string, headers map[string]string)
:
(*Client, error)
Response
http.Response
hasJSONContentType
(headers http.Header)
:
bool
GenerateTLSConfig
(caPath string, insecureSkipTLSVerify bool)
:
(*tls.Config, error)
NewHttpClientWithTLSConfig
(tlsConfig *tls.Config)
:
(*http.Client, error)
*Client
SetHeaders
(headers map[string]string)
NewRequest
(method, urlStr string, body interface{})
:
(*http.Request, error)
BareDo
(ctx context.Context, req *http.Request)
:
(*Response, error)
LockAndDo
(ctx context.Context, req *http.Request, v interface{})
:
(*Response, error)
Do
(ctx context.Context, req *http.Request, v interface{})
:
(*Response, error)
All occurrences
Please wait...
Page is in error, reload to recover