Пример #1
0
 public ClientRequest Create(ClientRequest.Options options = null)
 {
     if (options == null)
     {
         options = new ClientRequest.Options();
     }
     return(API.ApplyConstructor <ClientRequest>(options));
 }
Пример #2
0
 public ClientRequest request(string options)
 {
     ClientRequest.Options option = ClientRequest.Options.Parse(options);
     return(request(option));
 }
Пример #3
0
 /// <summary>
 /// Creates a ClientRequest instance using the provided options
 /// which are directly forwarded to the ClientRequest constructor.
 /// <para>
 /// The net.request method would be used to issue both secure
 /// and insecure HTTP requests according to the specified protocol scheme in the options object.
 /// </para>
 /// </summary>
 /// <param name="options"></param>
 /// <returns></returns>
 public ClientRequest request(ClientRequest.Options options)
 {
     return(API.ApplyAndGetObject <ClientRequest>("request", options));
 }