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

Method Blob

context.go:642–647  ·  view source on GitHub ↗

Blob sends a blob response with status code and content type.

(code int, contentType string, b []byte)

Source from the content-addressed store, hash-verified

640
641// Blob sends a blob response with status code and content type.
642func (c *Context) Blob(code int, contentType string, b []byte) (err error) {
643 c.writeContentType(contentType)
644 c.response.WriteHeader(code)
645 _, err = c.response.Write(b)
646 return
647}
648
649// Stream sends a streaming response with status code and content type.
650func (c *Context) Stream(code int, contentType string, r io.Reader) (err error) {

Callers 3

HTMLBlobMethod · 0.95
StringMethod · 0.95
JSONBlobMethod · 0.95

Calls 3

writeContentTypeMethod · 0.95
WriteHeaderMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected