Method
AcceptHeaders
func AcceptHeaders(cancellationToken: CancellationToken = default) -> Task<Result<HttpContext, HttpError>>
Declaring type: HttpServer
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpServer.rvn
Returns after valid headers; the caller reads Request.Content's stream on demand. Cancellation covers acceptance and headers. Pass a token to later body reads.
Parameters
| Name | Type | Description |
|---|---|---|
cancellationToken |
CancellationToken |