HttpOutput Type
Constructors
| Constructor | Description |
Full Usage:
HttpOutput(connection, runtime)
Parameters:
Connection
runtime : HttpRuntime
Returns: HttpOutput
|
|
Instance members
| Instance member | Description |
|
|
Full Usage:
this.executeTask task
Parameters:
Async<HttpContext option>
Returns: Async<HttpContext option>
|
|
Full Usage:
this.run request webPart
Parameters:
HttpRequest
webPart : WebPart
Returns: Task<Result<bool, Error>>
|
|
Full Usage:
this.writeContent writePreamble context
Parameters:
bool
context : HttpContext
Returns: HttpContent -> Task<unit>
|
|
Full Usage:
this.writeContentLengthHeader content context
Parameters:
byte[]
context : HttpContext
Returns: Task<unit>
Modifiers: inline |
|
Full Usage:
this.writeContentType headers
Parameters:
(string * string) list
Returns: ValueTask
Modifiers: inline |
|
Full Usage:
this.writeHeaders exclusions headers
Parameters:
string list
headers : (string * string) list
Returns: Task<unit>
|
Walk the response headers list directly via pattern matching. Compared to the previous implementation which iterated through the `seq<_>` interface and called `GetEnumerator()`, this avoids: - enumerator allocation per response, - boxing the list into IEnumerable on the call site, - per-iteration closure allocations from `List.exists`. The cons cells of the input list already exist (the caller built them); we simply traverse them with no extra allocation.
|
|
|
|
|