Exemplo n.º 1
0
 /// <summary>
 ///   Called when the message is growing beyond the maximum message size
 /// </summary>
 /// <returns>
 ///   An exception that will be thrown to indicate the too large message
 /// </returns>
 protected override Exception HandleMessageTooLarge()
 {
     return(Errors.RequestEntityTooLarge(this.maximumRequestHeaderSize));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Called when the message contains a carriage return without a line feed
 /// </summary>
 protected override void HandleLoneCarriageReturn()
 {
     throw Errors.BadRequest("Invalid character in request header");
 }