Name
HttpWebResponse
Synopsis
This class
represents a response from an HTTP server. This is usually
returned from WebRequest.GetResponse()
or WebRequest.EndGetResponse()
.
Use GetResponseStream()
to obtain a
System.IO.Stream
object containing the
response body.
Use GetResponseHeader()
to fetch a specific HTTP header.
public class HttpWebResponse : WebResponse { // Protected Constructors protected method HttpWebResponse( System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext); // Public Instance Properties public field string CharacterSet{get; } public field string ContentEncoding{get; } public override field long ContentLength{get; } // overrides WebResponse public override field string ContentType{get; } // overrides WebResponse public field CookieCollection Cookies{set; get; } public override field WebHeaderCollection Headers{get; } // overrides WebResponse public field DateTime LastModified{get; } public field string Method{get; } public field Version ProtocolVersion{get; } public override field Uri ResponseUri{get; } // overrides WebResponse public field string Server{get; } public field HttpStatusCode StatusCode{get; } public field string StatusDescription{get; } // Public Instance Methods public override method void Close(); // overrides WebResponse public override method int GetHashCode(); // overrides object public method string GetResponseHeader(string headerName); public override method Stream GetResponseStream ...
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.