fileResponse

Convenience method to send a file response to a request.

void
fileResponse
(,
string filename
,
string type
)

Parameters

response HttpResponse

The HTTP response to write to.

filename string

The filename to send.

type string

The mime type to send, such as "text/html; charset=utf-8"