Method | Description | |
---|---|---|
BeginChunkBytes ( int dataCount ) : ArraySegment |
||
Flush ( ) : void | ||
FlushAsync ( |
||
Frame ( Microsoft.AspNet.Server.Kestrel.Http.ConnectionContext context ) : System | ||
OnCompleted ( Task>.Func | ||
OnStarting ( Task>.Func | ||
ProduceContinue ( ) : void | ||
ProduceStartAndFireOnStarting ( bool immediate = true ) : Task | ||
RequestProcessingAsync ( ) : Task |
Primary loop which consumes socket input, parses it for protocol framing, and invokes the application delegate for as long as the socket is intended to remain open. The resulting Task from this loop is preserved in a field which is used when the server needs to drain and close all currently active connections.
|
|
Reset ( ) : void | ||
ResetResponseHeaders ( ) : void | ||
Start ( ) : void |
Called once by Connection class to begin the RequestProcessingAsync loop.
|
|
StatusCanHaveBody ( int statusCode ) : bool | ||
Stop ( ) : Task |
Should be called when the server wants to initiate a shutdown. The Task returned will become complete when the RequestProcessingAsync function has exited. It is expected that Stop will be called on all active connections, and Task.WaitAll() will be called on every return value.
|
|
TakeMessageHeaders ( |
||
Write ( ArraySegment |
||
WriteAsync ( ArraySegment |
Method | Description | |
---|---|---|
CreateAsciiByteArraySegment ( string text ) : ArraySegment |
||
CreateResponseHeader ( string status, bool appCompleted ) : IDisposable>.Tuple |
||
FastEnumerable ( ) : object>>.IEnumerable |
||
FastFeatureGet ( |
||
FastFeatureSet ( |
||
FastReset ( ) : void | ||
FireOnCompleted ( ) : Task | ||
FireOnStarting ( ) : Task | ||
GetString ( ArraySegment |
||
ProduceEnd ( ) : Task | ||
ProduceStart ( bool immediate, bool appCompleted ) : Task | ||
ReportApplicationError ( |
||
TakeStartLine ( |
||
WriteChunked ( ArraySegment |
||
WriteChunkedAsync ( ArraySegment |
||
WriteChunkedResponseSuffix ( ) : void |
public static BeginChunkBytes ( int dataCount ) : ArraySegment |
||
dataCount | int | |
return | ArraySegment |
public FlushAsync ( |
||
cancellationToken | ||
return | Task |
public Frame ( Microsoft.AspNet.Server.Kestrel.Http.ConnectionContext context ) : System | ||
context | Microsoft.AspNet.Server.Kestrel.Http.ConnectionContext | |
return | System |
public OnCompleted ( Task>.Func | ||
callback | Task>.Func | |
state | object | |
return | void |
public OnStarting ( Task>.Func | ||
callback | Task>.Func | |
state | object | |
return | void |
public ProduceStartAndFireOnStarting ( bool immediate = true ) : Task | ||
immediate | bool | |
return | Task |
public StatusCanHaveBody ( int statusCode ) : bool | ||
statusCode | int | |
return | bool |
public static TakeMessageHeaders ( |
||
input | ||
requestHeaders | ||
return | bool |
public WriteAsync ( ArraySegment |
||
data | ArraySegment |
|
cancellationToken | ||
return | Task |