Response.Raw method
Creates a response from bytes, sent without a content type.
public static Response Raw(byte[] body, ushort status = 200)
| parameter | description |
|---|---|
| body | The bytes to send. The array is kept, not copied: do not change it after the call. |
| status | The HTTP status code. |
Remarks
A client usually needs to be told what it is receiving, so prefer Bytes. Use this for a body no client will interpret, or when the content type does not matter.