Response.Bytes method
Creates a response from bytes with the content type you name, such as image/png.
public static Response Bytes(byte[] body, string? contentType, ushort status = 200)
| parameter | description |
|---|---|
| body | The bytes to send. The array is kept, not copied: do not change it after the call. |
| contentType | The value of the content-type header. Null sends no content type, as Raw does. |
| status | The HTTP status code. |