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