示例#1
0
 /// <inheritdoc />
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:MinimalHttp.Client.HttpResponse" /> class.
 /// </summary>
 /// <param name="response">The response.</param>
 /// <param name="cert">The cert.</param>
 public HttpResponse(HttpWebResponse response, HttpCertificate cert) : this(response)
 {
     Certificate = cert;
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="HttpResponse" /> class.
 /// </summary>
 /// <param name="response"></param>
 /// <param name="status"></param>
 /// <param name="cert"></param>
 public HttpResponse(HttpWebResponse response, WebExceptionStatus status, HttpCertificate cert) : this(response, cert)
 {
     WebExceptionStatus = status;
 }
 /// <summary>
 ///     Equalses the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns></returns>
 public bool Equals(HttpCertificate other)
 {
     return(other != null && CompareBytes(GetRawCertData(), other.GetRawCertData()));
 }