Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (65 sloc) 2.289 kB
#region License
// Copyright 2010 John Sheehan
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#endregion
using System;
using System.Collections.Generic;
using System.Net;
using System.IO;
using System.Security.Cryptography.X509Certificates;
namespace RestSharp
{
public interface IHttp
{
CookieContainer CookieContainer { get; set; }
ICredentials Credentials { get; set; }
string UserAgent { get; set; }
int Timeout { get; set; }
#if !SILVERLIGHT
bool FollowRedirects { get; set; }
#endif
#if FRAMEWORK
X509CertificateCollection ClientCertificates { get; set; }
int? MaxRedirects { get; set; }
#endif
IList<HttpHeader> Headers { get; }
IList<HttpParameter> Parameters { get; }
IList<HttpFile> Files { get; }
IList<HttpCookie> Cookies { get; }
string RequestBody { get; set; }
string RequestContentType { get; set; }
Uri Url { get; set; }
HttpWebRequest DeleteAsync(Action<HttpResponse> action);
HttpWebRequest GetAsync(Action<HttpResponse> action);
HttpWebRequest HeadAsync(Action<HttpResponse> action);
HttpWebRequest OptionsAsync(Action<HttpResponse> action);
HttpWebRequest PostAsync(Action<HttpResponse> action);
HttpWebRequest PutAsync(Action<HttpResponse> action);
HttpWebRequest PatchAsync(Action<HttpResponse> action);
HttpWebRequest AsPostAsync(Action<HttpResponse> action, string httpMethod);
HttpWebRequest AsGetAsync(Action<HttpResponse> action, string httpMethod);
#if FRAMEWORK
HttpResponse Delete();
HttpResponse Get();
HttpResponse Head();
HttpResponse Options();
HttpResponse Post();
HttpResponse Put();
HttpResponse Patch();
HttpResponse AsPost(string httpMethod);
HttpResponse AsGet(string httpMethod);
IWebProxy Proxy { get; set; }
#endif
}
}
Jump to Line
Something went wrong with that request. Please try again.