internal HttpResponse(string line, IHttpMessage message) { validation_code = Validate(line, out var version, out var status); Version = version; StatusCode = status; Message = message; }
public HttpResponse(HttpVersion version, HttpStatusCode code, IHttpMessage message) { Version = version; StatusCode = code; Message = message; validation_code = HttpResponseValidationCode.Valid; }
public InvalidHttpResponseException(HttpResponseValidationCode validation) : this(validation.ToString()) { ValidationCode = validation; }