Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpResponse" /> class.
 /// </summary>
 /// <param name="delay">delay.</param>
 /// <param name="body">body.</param>
 /// <param name="cookies">cookies.</param>
 /// <param name="connectionOptions">connectionOptions.</param>
 /// <param name="headers">headers.</param>
 /// <param name="statusCode">statusCode.</param>
 /// <param name="reasonPhrase">reasonPhrase.</param>
 public HttpResponse(Delay delay = default(Delay), string body = default(string), KeyToValue cookies = default(KeyToValue), ConnectionOptions connectionOptions = default(ConnectionOptions), KeyToMultiValue headers = default(KeyToMultiValue), int?statusCode = default(int?), string reasonPhrase = default(string))
 {
     this.Delay             = delay;
     this.Body              = body;
     this.Cookies           = cookies;
     this.ConnectionOptions = connectionOptions;
     this.Headers           = headers;
     this.StatusCode        = statusCode;
     this.ReasonPhrase      = reasonPhrase;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpRequest" /> class.
 /// </summary>
 /// <param name="body">body.</param>
 /// <param name="headers">headers.</param>
 /// <param name="cookies">cookies.</param>
 /// <param name="queryStringParameters">queryStringParameters.</param>
 /// <param name="path">path.</param>
 /// <param name="method">method.</param>
 /// <param name="secure">secure.</param>
 /// <param name="keepAlive">keepAlive.</param>
 public HttpRequest(string body = default(string), KeyToMultiValue headers = default(KeyToMultiValue), KeyToValue cookies = default(KeyToValue), KeyToMultiValue queryStringParameters = default(KeyToMultiValue), string path = default(string), string method = default(string), bool?secure = default(bool?), bool?keepAlive = default(bool?))
 {
     this.Body    = body;
     this.Headers = headers;
     this.Cookies = cookies;
     this.QueryStringParameters = queryStringParameters;
     this.Path      = path;
     this.Method    = method;
     this.Secure    = secure;
     this.KeepAlive = keepAlive;
 }