// TODO hrm
        public HttpWebRequest Build(HttpOptions options)
        {
            var request = (HttpWebRequest) WebRequest.Create(options.BaseUri);

            request.Method = options.Method;

            PrepareRequestStream(options, request);

            PrepareAuthentication(options, request);

            options.Configure(request);

            return request;
        }
Exemple #2
0
        // TODO hrm
        public HttpWebRequest Build(HttpOptions options)
        {
            var request = (HttpWebRequest)WebRequest.Create(options.BaseUri);

            request.Method = options.Method;

            PrepareRequestStream(options, request);

            PrepareAuthentication(options, request);

            options.Configure(request);

            return(request);
        }
 public HttpWebRequest Build(HttpOptions options)
 {
     var result = (HttpWebRequest) WebRequest.Create(options.BaseUri);
     options.Configure(result);
     return result;
 }