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