/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Servers/Kestrel/shared/test/TestHttp1Connection.cs
40 строк
977 B
William Godbe
Rename Microsoft.Aspnetcore.Testing to Microsoft.AspNetCore.InternalTesting (#51713)
02 ноя 2023, 03:15
Не верифицирован
02 ноя 2023, 03:15
fc8deca
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Threading.Tasks; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal; using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http; namespace Microsoft.AspNetCore.InternalTesting; internal class TestHttp1Connection : Http1Connection { public TestHttp1Connection(HttpConnectionContext context) : base(context) { } public HttpVersion HttpVersionEnum { get => _httpVersion; set => _httpVersion = value; } public bool KeepAlive { get => _keepAlive; set => _keepAlive = value; } public MessageBody NextMessageBody { private get; set; } public Task ProduceEndAsync() { return ProduceEnd(); } protected override MessageBody CreateMessageBody() { return NextMessageBody ?? base.CreateMessageBody(); } }