Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OnStaticIndexedHeader() [1/2]

void IHttpHeadersHandler. System.Net.Http.Http2Connection.Http2Stream.OnStaticIndexedHeader ( int index)
inlineprivate

Implements System.Net.Http.IHttpHeadersHandler.

Definition at line 755 of file Http2Connection.cs.

756 {
757 if (index <= 7)
758 {
759 if (System.Net.NetEventSource.Log.IsEnabled())
760 {
761 Trace($"Invalid request pseudo-header ID {index}.", "OnStaticIndexedHeader");
762 }
763 throw new HttpRequestException(System.SR.net_http_invalid_response);
764 }
765 if (index <= 14)
766 {
769 }
770 else
771 {
772 var (descriptor, array) = s_hpackStaticHeaderTable[index - 15];
773 OnHeader(descriptor, array);
774 }
775 }
void Trace(string message, [CallerMemberName] string memberName=null)
void OnHeader(HeaderDescriptor descriptor, ReadOnlySpan< byte > value)
static readonly System.Net.NetEventSource Log
static string net_http_invalid_response
Definition SR.cs:92
Definition SR.cs:7

References System.array, System.index, System.Net.NetEventSource.Log, System.SR.net_http_invalid_response, System.Net.Http.Http2Connection.Http2Stream.OnHeader(), System.Net.Http.Http2Connection.Http2Stream.OnStatus(), System.Net.Http.Http2Connection.Http2Stream.s_hpackStaticStatusCodeTable, and System.Net.Http.Http2Connection.Http2Stream.Trace().