コード例 #1
0
 internal HttpResponse(string line, IHttpMessage message)
 {
     validation_code = Validate(line, out var version, out var status);
     Version         = version;
     StatusCode      = status;
     Message         = message;
 }
コード例 #2
0
 public HttpResponse(HttpVersion version, HttpStatusCode code, IHttpMessage message)
 {
     Version         = version;
     StatusCode      = code;
     Message         = message;
     validation_code = HttpResponseValidationCode.Valid;
 }
コード例 #3
0
 public InvalidHttpResponseException(HttpResponseValidationCode validation) : this(validation.ToString())
 {
     ValidationCode = validation;
 }