System::Net::HttpWebResponse class

HttpWebResponse class

Represents the HTTP web response. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class HttpWebResponse : public System::Net::WebResponse

Methods

MethodDescription
Close() overrideCloses the response stream.
get_CharacterSet()Not implemented.
get_ContentLength() overrideRTTI information.
get_ContentType() overrideReturns the MIME type of the resource.
virtual get_Cookies()Returns cookies associated with the web response.
get_Headers() overrideReturns the collection of the headers that are associated with the current response.
virtual get_Method()Returns the HTTP method.
get_ResponseUri() overrideReturns the resource’s URI.
virtual get_StatusCode()Returns the HTTP status code associated with the web response.
virtual get_StatusDescription()Returns the string representation of the status code.
get_SupportsHeaders() overrideReturns a value that indicates if the current response supports headers.
GetResponseHeader(String)Returns the corresponding value for the specified header name.
GetResponseStream() overrideReturns the response stream.
HttpWebResponse(System::SharedPtr<Http::HttpResponseMessage>, System::SharedPtr<Uri>, System::SharedPtr<CookieContainer>)Constructs a new instance.

See Also