/// <summary> /// Initializes a new instance of the <see cref="HttpResponse"/> class. /// </summary> /// <param name="statusCode">The status code.</param> /// <param name="reasonPhrase">The reason phrase.</param> /// <param name="httpVersion">The HTTP version.</param> public HttpResponse(HttpStatusCode statusCode, string reasonPhrase, string httpVersion) : base(statusCode, reasonPhrase, httpVersion) { Cookies = new HttpCookieCollection <IResponseCookie>(); }
/// <summary> /// /// </summary> /// <param name="httpMethod">Method like <c>POST</c>.</param> /// <param name="pathAndQuery">Absolute path and query string (if one exist)</param> /// <param name="httpVersion">HTTP version like <c>HTTP/1.1</c></param> public HttpRequest(string httpMethod, string pathAndQuery, string httpVersion) : base(httpMethod, pathAndQuery, httpVersion) { Form = new ParameterCollection(); Files = new HttpFileCollection(); Cookies = new HttpCookieCollection <IHttpCookie>(); }
/// <summary> /// Initializes a new instance of the <see cref="HttpResponse"/> class. /// </summary> /// <param name="statusCode">The status code.</param> /// <param name="reasonPhrase">The reason phrase.</param> /// <param name="httpVersion">The HTTP version.</param> internal HttpResponse(int statusCode, string reasonPhrase, string httpVersion) : base(statusCode, reasonPhrase, httpVersion) { Cookies = new HttpCookieCollection <IResponseCookie>(); }