/// <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)); }
/// <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"); }