MCPcopy Create free account
hub / github.com/gogs/gogs / SetTLSClientConfig

Method SetTLSClientConfig

internal/httplib/httplib.go:154–157  ·  view source on GitHub ↗

SetTLSClientConfig sets tls connection configurations if visiting https url.

(config *tls.Config)

Source from the content-addressed store, hash-verified

152
153// SetTLSClientConfig sets tls connection configurations if visiting https url.
154func (r *Request) SetTLSClientConfig(config *tls.Config) *Request {
155 r.setting.TLSClientConfig = config
156 return r
157}
158
159// SetCheckRedirect sets the policy invoked by the underlying HTTP client before
160// following a redirect. See http.Client.CheckRedirect for semantics.

Callers 2

deliverMethod · 0.80
runHookPostReceiveFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected