This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP/2: validate request headers prior to starting new stream.
- Loading branch information
Cesar Blum Silveira
authored
Oct 10, 2017
1 parent
08c6c38
commit d46d2ce
Showing
3 changed files
with
550 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Kestrel.Core/Internal/Http2/Http2StreamErrorException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2 | ||
{ | ||
public class Http2StreamErrorException : Exception | ||
{ | ||
public Http2StreamErrorException(int streamId, Http2ErrorCode errorCode) | ||
: base($"HTTP/2 stream ID {streamId} error: {errorCode}") | ||
{ | ||
StreamId = streamId; | ||
ErrorCode = errorCode; | ||
} | ||
|
||
public int StreamId { get; } | ||
|
||
public Http2ErrorCode ErrorCode { get; } | ||
} | ||
} |
Oops, something went wrong.