Blob sends a blob response with status code and content type.
(code int, contentType string, b []byte)
| 640 | |
| 641 | // Blob sends a blob response with status code and content type. |
| 642 | func (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. |
| 650 | func (c *Context) Stream(code int, contentType string, r io.Reader) (err error) { |
no test coverage detected