1 write to Http1Connection
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
166 references to Http1Connection
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (166)
StartLineTests.cs (166)
32Http1Connection.Reset();
34Assert.Null(Http1Connection.RawTarget);
35Assert.Null(Http1Connection.Path);
36Assert.Null(Http1Connection.QueryString);
43Assert.Equal(rawTarget, Http1Connection.RawTarget);
44Assert.Equal(path, Http1Connection.Path);
45Assert.Equal(query, Http1Connection.QueryString);
48Assert.NotSame(rawTarget, Http1Connection.RawTarget);
49Assert.NotSame(path, Http1Connection.Path);
50Assert.NotSame(query, Http1Connection.QueryString);
59Http1Connection.Reset();
61Assert.Null(Http1Connection.RawTarget);
62Assert.Null(Http1Connection.Path);
63Assert.Null(Http1Connection.QueryString);
70Assert.Equal(rawTarget, Http1Connection.RawTarget);
71Assert.Equal(path, Http1Connection.Path);
72Assert.Equal(query, Http1Connection.QueryString);
75Assert.NotSame(rawTarget, Http1Connection.RawTarget);
77Assert.Same(path, Http1Connection.Path);
78Assert.Same(query, Http1Connection.QueryString);
87Http1Connection.Reset();
89Assert.Null(Http1Connection.RawTarget);
90Assert.Null(Http1Connection.Path);
91Assert.Null(Http1Connection.QueryString);
98Assert.Equal(rawTarget, Http1Connection.RawTarget);
99Assert.Equal(path, Http1Connection.Path);
100Assert.Equal(query, Http1Connection.QueryString);
103Assert.NotSame(rawTarget, Http1Connection.RawTarget);
104Assert.NotSame(path, Http1Connection.Path);
105Assert.NotSame(query, Http1Connection.QueryString);
114Http1Connection.Reset();
116Assert.Null(Http1Connection.RawTarget);
117Assert.Null(Http1Connection.Path);
118Assert.Null(Http1Connection.QueryString);
125Assert.Equal(rawTarget, Http1Connection.RawTarget);
126Assert.Equal(path, Http1Connection.Path);
127Assert.Equal(query, Http1Connection.QueryString);
130Assert.Same(rawTarget, Http1Connection.RawTarget);
132Assert.Same(path, Http1Connection.Path);
133Assert.Same(query, Http1Connection.QueryString);
143Http1Connection.Reset();
149Assert.Equal(rawTarget, Http1Connection.RawTarget);
150Assert.Equal(path, Http1Connection.Path);
151Assert.Equal(query, Http1Connection.QueryString);
154Assert.NotSame(rawTarget, Http1Connection.RawTarget);
155Assert.NotSame(path, Http1Connection.Path);
156Assert.NotSame(query, Http1Connection.QueryString);
188Http1Connection.Reset();
193var prevRequestUrl = Http1Connection.RawTarget;
194var prevPath = Http1Connection.Path;
195var prevQuery = Http1Connection.QueryString;
200Http1Connection.Reset();
202Assert.Null(Http1Connection.RawTarget);
203Assert.Null(Http1Connection.Path);
204Assert.Null(Http1Connection.QueryString);
212Assert.Equal(rawTarget, Http1Connection.RawTarget);
213Assert.Equal(path, Http1Connection.Path);
214Assert.Equal(query, Http1Connection.QueryString);
218Assert.NotSame(rawTarget, Http1Connection.RawTarget);
219Assert.NotSame(path, Http1Connection.Path);
221Assert.True(query.Length == 0 || !ReferenceEquals(query, Http1Connection.QueryString));
225Assert.Same(prevRequestUrl, Http1Connection.RawTarget);
226Assert.Same(prevPath, Http1Connection.Path);
227Assert.Same(prevQuery, Http1Connection.QueryString);
229prevRequestUrl = Http1Connection.RawTarget;
230prevPath = Http1Connection.Path;
231prevQuery = Http1Connection.QueryString;
240Http1Connection.Reset();
246Assert.Equal(rawTarget, Http1Connection.RawTarget);
247Assert.Equal(path, Http1Connection.Path);
248Assert.Equal(query, Http1Connection.QueryString);
251Assert.NotSame(rawTarget, Http1Connection.RawTarget);
252Assert.NotSame(path, Http1Connection.Path);
253Assert.NotSame(query, Http1Connection.QueryString);
256Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);
257Assert.NotEqual(prevPath, Http1Connection.Path);
258Assert.NotEqual(prevQuery, Http1Connection.QueryString);
282Http1Connection.Reset();
287var prevRequestUrl = Http1Connection.RawTarget;
288var prevPath = Http1Connection.Path;
289var prevQuery = Http1Connection.QueryString;
294Http1Connection.Reset();
296Assert.Null(Http1Connection.RawTarget);
297Assert.Null(Http1Connection.Path);
298Assert.Null(Http1Connection.QueryString);
305Assert.Equal(rawTarget, Http1Connection.RawTarget);
306Assert.Equal(path, Http1Connection.Path);
307Assert.Equal(query, Http1Connection.QueryString);
311Assert.NotSame(rawTarget, Http1Connection.RawTarget);
312Assert.NotSame(path, Http1Connection.Path);
314Assert.True(query.Length == 0 || !ReferenceEquals(query, Http1Connection.QueryString));
318Assert.Same(prevRequestUrl, Http1Connection.RawTarget);
319Assert.Same(prevPath, Http1Connection.Path);
320Assert.Same(prevQuery, Http1Connection.QueryString);
322prevRequestUrl = Http1Connection.RawTarget;
323prevPath = Http1Connection.Path;
324prevQuery = Http1Connection.QueryString;
333Http1Connection.Reset();
339Assert.Equal(rawTarget, Http1Connection.RawTarget);
340Assert.Equal(path, Http1Connection.Path);
341Assert.Equal(query, Http1Connection.QueryString);
344Assert.NotSame(rawTarget, Http1Connection.RawTarget);
345Assert.NotSame(path, Http1Connection.Path);
346Assert.NotSame(query, Http1Connection.QueryString);
349Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);
350Assert.NotEqual(prevPath, Http1Connection.Path);
351Assert.NotEqual(prevQuery, Http1Connection.QueryString);
363Http1Connection.Reset();
368var prevRequestUrl = Http1Connection.RawTarget;
369var prevPath = Http1Connection.Path;
370var prevQuery = Http1Connection.QueryString;
375Http1Connection.Reset();
377Assert.Null(Http1Connection.RawTarget);
378Assert.Null(Http1Connection.Path);
379Assert.Null(Http1Connection.QueryString);
386Assert.Equal(rawTarget, Http1Connection.RawTarget);
387Assert.Equal(path, Http1Connection.Path);
388Assert.Equal(query, Http1Connection.QueryString);
392Assert.Same(rawTarget, Http1Connection.RawTarget);
393Assert.Same(path, Http1Connection.Path);
394Assert.Same(query, Http1Connection.QueryString);
398Assert.Same(prevRequestUrl, Http1Connection.RawTarget);
399Assert.Same(prevPath, Http1Connection.Path);
400Assert.Same(prevQuery, Http1Connection.QueryString);
402prevRequestUrl = Http1Connection.RawTarget;
403prevPath = Http1Connection.Path;
404prevQuery = Http1Connection.QueryString;
412Http1Connection.Reset();
418Assert.Equal(rawTarget, Http1Connection.RawTarget);
419Assert.Equal(path, Http1Connection.Path);
420Assert.Equal(query, Http1Connection.QueryString);
423Assert.NotSame(rawTarget, Http1Connection.RawTarget);
424Assert.NotSame(path, Http1Connection.Path);
425Assert.NotSame(query, Http1Connection.QueryString);
428Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);
429Assert.NotEqual(prevPath, Http1Connection.Path);
430Assert.NotEqual(prevQuery, Http1Connection.QueryString);
445Http1Connection.Reset();
450var prevRequestUrl = Http1Connection.RawTarget;
451var prevPath = Http1Connection.Path;
452var prevQuery = Http1Connection.QueryString;
457Http1Connection.Reset();
459Assert.Null(Http1Connection.RawTarget);
460Assert.Null(Http1Connection.Path);
461Assert.Null(Http1Connection.QueryString);
468Assert.Equal(rawTarget, Http1Connection.RawTarget);
469Assert.Equal(path, Http1Connection.Path);
470Assert.Equal(query, Http1Connection.QueryString);
473Assert.NotSame(rawTarget, Http1Connection.RawTarget);
475Assert.Same(path, Http1Connection.Path);
476Assert.Same(query, Http1Connection.QueryString);
480Assert.Same(prevRequestUrl, Http1Connection.RawTarget);
481Assert.Same(prevPath, Http1Connection.Path);
482Assert.Same(prevQuery, Http1Connection.QueryString);
484prevRequestUrl = Http1Connection.RawTarget;
485prevPath = Http1Connection.Path;
486prevQuery = Http1Connection.QueryString;
494Http1Connection.Reset();
500Assert.Equal(rawTarget, Http1Connection.RawTarget);
501Assert.Equal(path, Http1Connection.Path);
502Assert.Equal(query, Http1Connection.QueryString);
505Assert.NotSame(rawTarget, Http1Connection.RawTarget);
507Assert.Same(path, Http1Connection.Path);
508Assert.Same(query, Http1Connection.QueryString);
511Assert.NotEqual(prevRequestUrl, Http1Connection.RawTarget);
540ParsingHandler = new Http1ParsingHandler(Http1Connection);