MCPcopy
hub / github.com/labstack/echo / writeContentType

Method writeContentType

context.go:159–164  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

157}
158
159func (c *Context) writeContentType(value string) {
160 header := c.response.Header()
161 if header.Get(HeaderContentType) == "" {
162 header.Set(HeaderContentType, value)
163 }
164}
165
166// Request returns `*http.Request`.
167func (c *Context) Request() *http.Request {

Callers 7

jsonPBlobMethod · 0.95
jsonMethod · 0.95
JSONPBlobMethod · 0.95
xmlMethod · 0.95
XMLBlobMethod · 0.95
BlobMethod · 0.95
StreamMethod · 0.95

Calls 3

SetMethod · 0.80
HeaderMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected