MCPcopy Create free account
hub / github.com/imroc/req / SetContentType

Function SetContentType

request_wrapper.go:359–361  ·  view source on GitHub ↗

SetContentType is a global wrapper methods which delegated to the default client, create a request and SetContentType for request.

(contentType string)

Source from the content-addressed store, hash-verified

357// SetContentType is a global wrapper methods which delegated
358// to the default client, create a request and SetContentType for request.
359func SetContentType(contentType string) *Request {
360 return defaultClient.R().SetContentType(contentType)
361}
362
363// SetContext is a global wrapper methods which delegated
364// to the default client, create a request and SetContext for request.

Callers

nothing calls this directly

Calls 2

SetContentTypeMethod · 0.80
RMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…