protected virtual void OnBeforeRequest(RequestContext context)
{
if (context.Request.ContentLength.Value > MaxContentSize)
throw new HttpException(HttpStatusCode.RequestEntityTooLarge, "Too large body, limit is " + MaxContentSize);
context.Response.Add(new DateHeader("Date", DateTime.UtcNow));
context.Response.Add(new StringHeader("Server", ServerName));
}