MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetContentType

Method SetContentType

response.go:74–76  ·  view source on GitHub ↗
(contenttype string)

Source from the content-addressed store, hash-verified

72}
73
74func (r *Response) SetContentType(contenttype string) {
75 r.SetHeader(HeaderContentType, contenttype)
76}
77
78func (r *Response) SetStatusCode(code int) error {
79 return r.WriteHeader(code)

Callers 3

WriteBlobCMethod · 0.80
WriteJsonpBlobMethod · 0.80
mainFunction · 0.80

Calls 1

SetHeaderMethod · 0.95

Tested by

no test coverage detected