C# Class m.Http.Backend.Tcp.HttpResponseWriter

Mostra file Open project: joongonn/mHttp

Public Methods

Method Description
GetAcceptWebSocketUpgradeResponse ( int statusCode, string statusDescription, string requestKey ) : byte[]
GetRejectWebSocketUpgradeResponse ( int statusCode, string statusDescription ) : byte[]
GetStatusAndHeaders ( int statusCode, string statusDescription, string contentType, long contentLength, int keepAlives, System.TimeSpan keepAliveTimeout, String>.IDictionary headers ) : byte[]

Method Details

GetAcceptWebSocketUpgradeResponse() public static method

public static GetAcceptWebSocketUpgradeResponse ( int statusCode, string statusDescription, string requestKey ) : byte[]
statusCode int
statusDescription string
requestKey string
return byte[]

GetRejectWebSocketUpgradeResponse() public static method

public static GetRejectWebSocketUpgradeResponse ( int statusCode, string statusDescription ) : byte[]
statusCode int
statusDescription string
return byte[]

GetStatusAndHeaders() public static method

public static GetStatusAndHeaders ( int statusCode, string statusDescription, string contentType, long contentLength, int keepAlives, System.TimeSpan keepAliveTimeout, String>.IDictionary headers ) : byte[]
statusCode int
statusDescription string
contentType string
contentLength long
keepAlives int
keepAliveTimeout System.TimeSpan
headers String>.IDictionary
return byte[]