London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class HttpWebResponseAdapter

Inheritance
System.Object
HttpWebResponseAdapter
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: HttpWebAdapters.Adapters
Assembly: Solrnet.dll
Version: 13.30.0
Syntax
public class HttpWebResponseAdapter : IHttpWebResponse, IDisposable

Constructors

HttpWebResponseAdapter(WebResponse)

Declaration
public HttpWebResponseAdapter(WebResponse response)
Parameters
Type Name Description
System.Net.WebResponse response

Properties

CharacterSet

Declaration
public string CharacterSet { get; }
Property Value
Type Description
System.String

ContentEncoding

Declaration
public string ContentEncoding { get; }
Property Value
Type Description
System.String

ContentLength

Declaration
public long ContentLength { get; set; }
Property Value
Type Description
System.Int64

ContentType

Declaration
public string ContentType { get; set; }
Property Value
Type Description
System.String

Cookies

Declaration
public CookieCollection Cookies { get; set; }
Property Value
Type Description
System.Net.CookieCollection

Headers

Declaration
public WebHeaderCollection Headers { get; }
Property Value
Type Description
System.Net.WebHeaderCollection

IsFromCache

Declaration
public bool IsFromCache { get; }
Property Value
Type Description
System.Boolean

IsMutuallyAuthenticated

Declaration
public bool IsMutuallyAuthenticated { get; }
Property Value
Type Description
System.Boolean

LastModified

Declaration
public DateTime LastModified { get; }
Property Value
Type Description
System.DateTime

Method

Declaration
public string Method { get; }
Property Value
Type Description
System.String

ProtocolVersion

Declaration
public Version ProtocolVersion { get; }
Property Value
Type Description
System.Version

ResponseUri

Declaration
public Uri ResponseUri { get; }
Property Value
Type Description
System.Uri

Server

Declaration
public string Server { get; }
Property Value
Type Description
System.String

StatusCode

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
System.Net.HttpStatusCode

StatusDescription

Declaration
public string StatusDescription { get; }
Property Value
Type Description
System.String

Methods

Close()

Declaration
public void Close()

Dispose()

Declaration
public void Dispose()

GetResponseHeader(String)

Declaration
public string GetResponseHeader(string headerName)
Parameters
Type Name Description
System.String headerName
Returns
Type Description
System.String

GetResponseStream()

Declaration
public Stream GetResponseStream()
Returns
Type Description
System.IO.Stream

Implements

System.IDisposable