MCPcopy Create free account
hub / github.com/gavv/httpexpect / ContentType

Method ContentType

response.go:727–729  ·  view source on GitHub ↗

Deprecated: use HasContentType instead.

(mediaType string, charset ...string)

Source from the content-addressed store, hash-verified

725
726// Deprecated: use HasContentType instead.
727func (r *Response) ContentType(mediaType string, charset ...string) *Response {
728 return r.HasContentType(mediaType, charset...)
729}
730
731// Deprecated: use HasContentEncoding instead.
732func (r *Response) ContentEncoding(encoding ...string) *Response {

Callers 2

TestFastBinder_BasicFunction · 0.80
TestFastBinder_ChunkedFunction · 0.80

Calls 1

HasContentTypeMethod · 0.95

Tested by 2

TestFastBinder_BasicFunction · 0.64
TestFastBinder_ChunkedFunction · 0.64