Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Async APIs should take a CancellationToken #80

Closed
@Tratcher

Description

@Tratcher

There are several async APIs in the feature interfaces or on HttpContext that developers may want granular timeout/cancellation support for. Especially anything that can trigger network IO.

Task<X509Certificate> IHttpClientCertificateFeature.GetClientCertificateAsync();
Task<Stream> IHttpOpaqueUpgradeFeature.UpgradeAsync();
Task<WebSocket> IHttpWebSocketFeature.AcceptAsync(IWebSocketAcceptContext context);
Task IAuthenticationHandler.AuthenticateAsync(IAuthenticateContext context);
Task<IReadableStringCollection> IFormFeature.GetFormAsync();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions