KestrunResponse.WriteBinaryResponse method

Writes a binary response with the specified data, status code, and content type.

public void WriteBinaryResponse(byte[] data, int statusCode = 200, 
    string contentType = "application/octet-stream")
parameter description
data The binary data to send in the response.
statusCode The HTTP status code for the response.
contentType The MIME type of the response content.

See Also