14 writes to RawTarget
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\Http\Http1Connection.cs (8)
453RawTarget = ForwardSlash; 474RawTarget = previousValue; 494RawTarget = _parsedRawTarget = target.GetAsciiString(); 590RawTarget = _parsedRawTarget = target.GetAsciiString(); 595RawTarget = _parsedRawTarget; 617RawTarget = Asterisk; 650RawTarget = _parsedRawTarget = target.GetAsciiString(); 718RawTarget = _parsedRawTarget;
Internal\Http\HttpProtocol.cs (1)
383RawTarget = null;
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
73set => RawTarget = value;
Internal\Http2\Http2Stream.cs (2)
282RawTarget = hostText; 314RawTarget = path;
Internal\Http3\Http3Stream.cs (2)
1056RawTarget = hostText; 1082RawTarget = path;
63 references to RawTarget
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\Http\Http1Connection.cs (4)
435Debug.Assert(RawTarget != null, "RawTarget was not set"); 524Path = _parsedPath = PathDecoder.DecodePath(path, targetPath.IsEncoded, RawTarget, queryLength); 665if (!Uri.TryCreate(RawTarget, UriKind.Absolute, out var uri)) 764if (hostText != RawTarget)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
72get => RawTarget!;
Internal\Http2\Http2Stream.cs (3)
416ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR); 449Path = PathDecoder.DecodePath(pathBuffer, pathEncoded, RawTarget!, QueryString!.Length); 455ResetAndAbort(new ConnectionAbortedException(CoreStrings.FormatHttp2StreamErrorPathInvalid(RawTarget)), Http2ErrorCode.PROTOCOL_ERROR);
Internal\Http3\Http3Stream.cs (3)
1184Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError); 1217Path = PathDecoder.DecodePath(pathBuffer, pathEncoded, RawTarget!, QueryString!.Length); 1223Abort(new ConnectionAbortedException(CoreStrings.FormatHttp3StreamErrorPathInvalid(RawTarget)), Http3ErrorCode.ProtocolError);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (52)
Http1\Http1ConnectionTests.cs (2)
447Assert.Equal(expectedRawTarget, _http1Connection.RawTarget); 469Assert.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); 195var prevRequestUrl = Http1Connection.RawTarget; 204Assert.Null(Http1Connection.RawTarget); 214Assert.Equal(rawTarget, Http1Connection.RawTarget); 220Assert.NotSame(rawTarget, Http1Connection.RawTarget); 227Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 231prevRequestUrl = Http1Connection.RawTarget; 248Assert.Equal(rawTarget, Http1Connection.RawTarget); 253Assert.NotSame(rawTarget, Http1Connection.RawTarget); 258Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 291var prevRequestUrl = Http1Connection.RawTarget; 300Assert.Null(Http1Connection.RawTarget); 309Assert.Equal(rawTarget, Http1Connection.RawTarget); 315Assert.NotSame(rawTarget, Http1Connection.RawTarget); 322Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 326prevRequestUrl = Http1Connection.RawTarget; 343Assert.Equal(rawTarget, Http1Connection.RawTarget); 348Assert.NotSame(rawTarget, Http1Connection.RawTarget); 353Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 372var prevRequestUrl = Http1Connection.RawTarget; 381Assert.Null(Http1Connection.RawTarget); 390Assert.Equal(rawTarget, Http1Connection.RawTarget); 396Assert.Same(rawTarget, Http1Connection.RawTarget); 402Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 406prevRequestUrl = Http1Connection.RawTarget; 422Assert.Equal(rawTarget, Http1Connection.RawTarget); 427Assert.NotSame(rawTarget, Http1Connection.RawTarget); 432Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget); 454var prevRequestUrl = Http1Connection.RawTarget; 463Assert.Null(Http1Connection.RawTarget); 472Assert.Equal(rawTarget, Http1Connection.RawTarget); 477Assert.NotSame(rawTarget, Http1Connection.RawTarget); 484Assert.Same(prevRequestUrl, Http1Connection.RawTarget); 488prevRequestUrl = Http1Connection.RawTarget; 504Assert.Equal(rawTarget, Http1Connection.RawTarget); 509Assert.NotSame(rawTarget, Http1Connection.RawTarget); 515Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);