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

Method WriteBlob

context.go:600–602  ·  view source on GitHub ↗

WriteBlob write []byte content to response

(contentType string, b []byte)

Source from the content-addressed store, hash-verified

598
599// WriteBlob write []byte content to response
600func (ctx *HttpContext) WriteBlob(contentType string, b []byte) error {
601 return ctx.WriteBlobC(defaultHttpCode, contentType, b)
602}
603
604// WriteBlobC write (httpCode, []byte) to response
605func (ctx *HttpContext) WriteBlobC(code int, contentType string, b []byte) error {

Callers 1

WriteJsonpBlobMethod · 0.95

Calls 1

WriteBlobCMethod · 0.95

Tested by

no test coverage detected