C# Class System.Net.Http.WinHttpResponseParser

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CreateResponseMessage ( WinHttpRequestState state, bool doManualDecompressionCheck ) : HttpResponseMessage
state WinHttpRequestState
doManualDecompressionCheck bool
Résultat HttpResponseMessage

GetResponseHeader() public static méthode

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
Résultat bool

GetResponseHeaderNumberInfo() public static méthode

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
Résultat uint