Added transfer format to Protocol.Abstractions (#2391)
This commit is contained in:
parent
e65e58daf3
commit
04eef791bc
|
|
@ -0,0 +1,11 @@
|
||||||
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
namespace Microsoft.AspNetCore.Protocols.Features
|
||||||
|
{
|
||||||
|
public interface ITransferFormatFeature
|
||||||
|
{
|
||||||
|
TransferFormat SupportedFormats { get; }
|
||||||
|
TransferFormat ActiveFormat { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Microsoft.AspNetCore.Protocols
|
||||||
|
{
|
||||||
|
[Flags]
|
||||||
|
public enum TransferFormat
|
||||||
|
{
|
||||||
|
Binary = 0x01,
|
||||||
|
Text = 0x02
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue