MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newHTTPClient

Method newHTTPClient

internal/pluginhost/http_bridge.go:23–29  ·  view source on GitHub ↗
(auth *coreauth.Auth, providers ...string)

Source from the content-addressed store, hash-verified

21}
22
23func (h *Host) newHTTPClient(auth *coreauth.Auth, providers ...string) pluginapi.HostHTTPClient {
24 provider := ""
25 if len(providers) > 0 {
26 provider = providers[0]
27 }
28 return &hostHTTPClient{host: h, auth: auth, provider: provider}
29}
30
31func (c *hostHTTPClient) Do(ctx context.Context, req pluginapi.HTTPRequest) (pluginapi.HTTPResponse, error) {
32 if ctx == nil {

Callers 9

callModelsForAuthMethod · 0.95
callStartLoginMethod · 0.95
callPollLoginMethod · 0.95
RefreshAuthMethod · 0.95
callHostHTTPDoMethod · 0.95
callHostHTTPDoStreamMethod · 0.95
RefreshMethod · 0.80
HttpRequestMethod · 0.80
buildExecutorRequestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected