14 writes to RawTarget
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\Http1Connection.cs (8)
350RawTarget = ForwardSlash; 371RawTarget = previousValue; 391RawTarget = _parsedRawTarget = target.GetAsciiString(); 487RawTarget = _parsedRawTarget = target.GetAsciiString(); 492RawTarget = _parsedRawTarget; 514RawTarget = Asterisk; 547RawTarget = _parsedRawTarget = target.GetAsciiString(); 587RawTarget = _parsedRawTarget;
Internal\Http\HttpProtocol.cs (1)
365RawTarget = null;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
73set => RawTarget = value;
Internal\Http2\Http2Stream.cs (2)
283RawTarget = hostText; 315RawTarget = path;
Internal\Http3\Http3Stream.cs (2)
1030RawTarget = hostText; 1056RawTarget = path;
63 references to RawTarget
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1Connection.cs (4)
332Debug.Assert(RawTarget != null, "RawTarget was not set"); 421Path = _parsedPath = PathDecoder.DecodePath(path, targetPath.IsEncoded, RawTarget, queryLength); 562if (!Uri.TryCreate(RawTarget, UriKind.Absolute, out var uri)) 633if (hostText != RawTarget)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
72get => RawTarget!;
Internal\Http2\Http2Stream.cs (3)
417ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR); 450Path = PathDecoder.DecodePath(pathBuffer, pathEncoded, RawTarget!, QueryString!.Length); 456ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR);
Internal\Http3\Http3Stream.cs (3)
1158Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError); 1191Path = PathDecoder.DecodePath(pathBuffer, pathEncoded, RawTarget!, QueryString!.Length); 1197Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (52)
Http1\Http1ConnectionTests.cs (2)
418Assert.Equal(expectedRawTarget, _http1Connection.RawTarget); 440Assert.Equal(expectedRawTarget, _http1Connection.RawTarget);
StartLineTests.cs (50)
34Assert.Null(Http1Connection.RawTarget); 43Assert.Equal(rawTarget, Http1Connection.RawTarget); 48Assert.NotSame(rawTarget, Http1Connection.RawTarget); 61Assert.Null(Http1Connection.RawTarget); 70Assert.Equal(rawTarget, Http1Connection.RawTarget); 75Assert.NotSame(rawTarget, Http1Connection.RawTarget); 89Assert.Null(Http1Connection.RawTarget); 98Assert.Equal(rawTarget, Http1Connection.RawTarget); 103Assert.NotSame(rawTarget, Http1Connection.RawTarget); 116Assert.Null(Http1Connection.RawTarget); 125Assert.Equal(rawTarget, Http1Connection.RawTarget); 130Assert.Same(rawTarget, Http1Connection.RawTarget); 149Assert.Equal(rawTarget, Http1Connection.RawTarget); 154Assert.NotSame(rawTarget, Http1Connection.RawTarget); 193var prevRequestUrl = Http1Connection.RawTarget; 202Assert.Null(Http1Connection.RawTarget); 212Assert.Equal(rawTarget, Http1Connection.RawTarget); 218Assert.NotSame(rawTarget, Http1Connection.RawTarget); 225Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 229prevRequestUrl = Http1Connection.RawTarget; 246Assert.Equal(rawTarget, Http1Connection.RawTarget); 251Assert.NotSame(rawTarget, Http1Connection.RawTarget); 256Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 287var prevRequestUrl = Http1Connection.RawTarget; 296Assert.Null(Http1Connection.RawTarget); 305Assert.Equal(rawTarget, Http1Connection.RawTarget); 311Assert.NotSame(rawTarget, Http1Connection.RawTarget); 318Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 322prevRequestUrl = Http1Connection.RawTarget; 339Assert.Equal(rawTarget, Http1Connection.RawTarget); 344Assert.NotSame(rawTarget, Http1Connection.RawTarget); 349Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 368var prevRequestUrl = Http1Connection.RawTarget; 377Assert.Null(Http1Connection.RawTarget); 386Assert.Equal(rawTarget, Http1Connection.RawTarget); 392Assert.Same(rawTarget, Http1Connection.RawTarget); 398Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 402prevRequestUrl = Http1Connection.RawTarget; 418Assert.Equal(rawTarget, Http1Connection.RawTarget); 423Assert.NotSame(rawTarget, Http1Connection.RawTarget); 428Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 450var prevRequestUrl = Http1Connection.RawTarget; 459Assert.Null(Http1Connection.RawTarget); 468Assert.Equal(rawTarget, Http1Connection.RawTarget); 473Assert.NotSame(rawTarget, Http1Connection.RawTarget); 480Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 484prevRequestUrl = Http1Connection.RawTarget; 500Assert.Equal(rawTarget, Http1Connection.RawTarget); 505Assert.NotSame(rawTarget, Http1Connection.RawTarget); 511Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);