C# Class System.Net.Http.WinHttpResponseParser

Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
CreateResponseMessage ( WinHttpRequestState state, bool doManualDecompressionCheck ) : HttpResponseMessage
GetResponseHeader ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel, char &buffer, uint &index, string &headerValue ) : bool
GetResponseHeaderNumberInfo ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel ) : uint

Returns the first header or throws if the header isn't found.

Private Methods

Method Description
GetReasonPhrase ( HttpStatusCode statusCode, char buffer, int bufferLength ) : string
GetResponseHeader ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel, char buffer ) : int

Fills the buffer with the header value and returns the length, or returns 0 if the header isn't found.

GetResponseHeaderCharBufferLength ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel ) : int

Returns the size of the char array buffer.

IsResponseHttp2 ( Interop.WinHttp.SafeWinHttpHandle requestHandle ) : bool
ParseResponseHeaders ( Interop.WinHttp.SafeWinHttpHandle requestHandle, HttpResponseMessage response, char buffer, bool stripEncodingHeaders ) : void
QueryHeaders ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel, char buffer, int &bufferLength, uint &index ) : bool

Method Details

CreateResponseMessage() public static method

public static CreateResponseMessage ( WinHttpRequestState state, bool doManualDecompressionCheck ) : HttpResponseMessage
state WinHttpRequestState
doManualDecompressionCheck bool
return HttpResponseMessage

GetResponseHeader() public static method

public static GetResponseHeader ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel, char &buffer, uint &index, string &headerValue ) : bool
requestHandle Interop.WinHttp.SafeWinHttpHandle
infoLevel uint
buffer char
index uint
headerValue string
return bool

GetResponseHeaderNumberInfo() public static method

Returns the first header or throws if the header isn't found.
public static GetResponseHeaderNumberInfo ( Interop.WinHttp.SafeWinHttpHandle requestHandle, uint infoLevel ) : uint
requestHandle Interop.WinHttp.SafeWinHttpHandle
infoLevel uint
return uint