Silverlight 5 | WinRT |
public class ByteArrayContent | |
: HttpContent, IDisposable | |
protected virtual Stream CreateContentReadStream(); | |
protected virtual void SerializeToStream(Stream stream, TransportContext context); | |
protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext context); | |
internal protected virtual Boolean TryComputeLength(out Int64& length); |
public abstract class DelegatingHandler | |
: HttpMessageHandler, IDisposable | |
protected virtual void Dispose(Boolean disposing); | |
internal protected virtual HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken); | |
internal protected virtual Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken); |
public class FormUrlEncodedContent | |
: HttpContent, IDisposable | |
protected virtual Stream CreateContentReadStream(); | |
protected virtual void SerializeToStream(Stream stream, TransportContext context); | |
protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext context); | |
internal protected virtual Boolean TryComputeLength(out Int64& length); |
public class HttpClient | |
: IDisposable | |
public Uri BaseAddress { get; set; } | |
public HttpRequestHeaders DefaultRequestHeaders { get; } | |
public Int32 MaxResponseContentBufferSize { get; set; } | |
public TimeSpan Timeout { get; set; } | |
public void CancelPendingRequests(); | |
public HttpResponseMessage Delete(Uri requestUri); | |
public HttpResponseMessage Delete(String requestUri); | |
public Task`1<HttpResponseMessage> DeleteAsync(Uri requestUri); | |
public Task`1<HttpResponseMessage> DeleteAsync(String requestUri); | |
protected virtual void Dispose(Boolean disposing); | |
public virtual void Dispose(); | |
public HttpResponseMessage Get(Uri requestUri); | |
public HttpResponseMessage Get(String requestUri); | |
public Task`1<HttpResponseMessage> GetAsync(Uri requestUri); | |
public Task`1<HttpResponseMessage> GetAsync(String requestUri); | |
public HttpResponseMessage Post(Uri requestUri, HttpContent content); | |
public HttpResponseMessage Post(String requestUri, HttpContent content); | |
public Task`1<HttpResponseMessage> PostAsync(Uri requestUri, HttpContent content); | |
public Task`1<HttpResponseMessage> PostAsync(String requestUri, HttpContent content); | |
public HttpResponseMessage Put(Uri requestUri, HttpContent content); | |
public HttpResponseMessage Put(String requestUri, HttpContent content); | |
public Task`1<HttpResponseMessage> PutAsync(Uri requestUri, HttpContent content); | |
public Task`1<HttpResponseMessage> PutAsync(String requestUri, HttpContent content); | |
public HttpResponseMessage Send(HttpRequestMessage request); | |
public HttpResponseMessage Send(HttpRequestMessage request, HttpCompletionOption completionOption); | |
public HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken); | |
public HttpResponseMessage Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken); | |
public Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request); | |
public Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken); | |
public Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption); | |
public Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken); |
public class HttpClientHandler | |
: HttpMessageHandler, IDisposable | |
public Boolean AllowAutoRedirect { get; set; } | |
public DecompressionMethods AutomaticDecompression { get; set; } | |
public CookieContainer CookieContainer { get; set; } | |
public ICredentials Credentials { get; set; } | |
public Int32 MaxAutomaticRedirections { get; set; } | |
public Int32 MaxRequestContentBufferSize { get; set; } | |
public Boolean PreAuthenticate { get; set; } | |
public IWebProxy Proxy { get; set; } | |
public virtual Boolean SupportsAutomaticDecompression { get; } | |
public virtual Boolean SupportsProxy { get; } | |
public virtual Boolean SupportsRedirectConfiguration { get; } | |
public Boolean UseCookies { get; set; } | |
public Boolean UseDefaultCredentials { get; set; } | |
public Boolean UseProxy { get; set; } | |
protected virtual void Dispose(Boolean disposing); | |
internal protected virtual HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken); | |
internal protected virtual Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken); |
public sealed enum HttpCompletionOption | |
: IComparable, IFormattable, IConvertible | |
{ ResponseContentRead, ResponseHeadersRead } |
public abstract class HttpContent | |
: IDisposable | |
public Stream ContentReadStream { get; } | |
public HttpContentHeaders Headers { get; } | |
public void CopyTo(Stream stream, TransportContext context); | |
public void CopyTo(Stream stream); | |
public Task CopyToAsync(Stream stream, TransportContext context); | |
public Task CopyToAsync(Stream stream); | |
protected virtual Stream CreateContentReadStream(); | |
protected virtual void Dispose(Boolean disposing); | |
public virtual void Dispose(); | |
public void LoadIntoBuffer(); | |
public void LoadIntoBuffer(Int32 maxBufferSize); | |
public Task LoadIntoBufferAsync(); | |
public Task LoadIntoBufferAsync(Int32 maxBufferSize); | |
public Byte ReadAsByteArray(); | |
public String ReadAsString(); | |
protected abstract virtual void SerializeToStream(Stream stream, TransportContext context); | |
protected abstract virtual Task SerializeToStreamAsync(Stream stream, TransportContext context); | |
internal protected abstract virtual Boolean TryComputeLength(out Int64& length); |
public abstract class HttpMessageHandler | |
: IDisposable | |
protected virtual void Dispose(Boolean disposing); | |
public virtual void Dispose(); | |
internal protected abstract virtual HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken); | |
internal protected abstract virtual Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken); |
public class HttpMethod | |
: IEquatable`1<HttpMethod> | |
static public HttpMethod Delete { get; } | |
static public HttpMethod Get { get; } | |
static public HttpMethod Head { get; } | |
public String Method { get; } | |
static public HttpMethod Options { get; } | |
static public HttpMethod Post { get; } | |
static public HttpMethod Put { get; } | |
static public HttpMethod Trace { get; } | |
public virtual Boolean Equals(HttpMethod other); | |
public virtual Boolean Equals(Object obj); | |
public virtual Int32 GetHashCode(); | |
static public Boolean op_Equality(HttpMethod left, HttpMethod right); | |
static public Boolean op_Inequality(HttpMethod left, HttpMethod right); | |
public virtual String ToString(); |
public class HttpRequestException | |
: Exception, ISerializable, _Exception |
public class HttpRequestMessage | |
: IDisposable | |
public HttpContent Content { get; set; } | |
public HttpRequestHeaders Headers { get; } | |
public HttpMethod Method { get; set; } | |
public IDictionary`2<String, Object> Properties { get; } | |
public Uri RequestUri { get; set; } | |
public Version Version { get; set; } | |
protected virtual void Dispose(Boolean disposing); | |
public virtual void Dispose(); | |
public virtual String ToString(); |
public class HttpResponseMessage | |
: IDisposable | |
public HttpContent Content { get; set; } | |
public HttpResponseHeaders Headers { get; } | |
public Boolean IsSuccessStatusCode { get; } | |
public String ReasonPhrase { get; set; } | |
public HttpRequestMessage RequestMessage { get; set; } | |
public HttpStatusCode StatusCode { get; set; } | |
public Version Version { get; set; } | |
protected virtual void Dispose(Boolean disposing); | |
public virtual void Dispose(); | |
public HttpResponseMessage EnsureSuccessStatusCode(); | |
public virtual String ToString(); |
public abstract class MessageProcessingHandler | |
: DelegatingHandler, IDisposable | |
protected abstract virtual HttpRequestMessage ProcessRequest(HttpRequestMessage request, CancellationToken cancellationToken); | |
protected abstract virtual HttpResponseMessage ProcessResponse(HttpResponseMessage response, CancellationToken cancellationToken); | |
internal protected virtual HttpResponseMessage Send(HttpRequestMessage request, CancellationToken cancellationToken); | |
internal protected virtual Task`1<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken); |
public class MultipartContent | |
: HttpContent, IDisposable, IEnumerable`1<HttpContent>, IEnumerable | |
public virtual void Add(HttpContent content); | |
public virtual IEnumerator`1<HttpContent> GetEnumerator(); | |
protected virtual void SerializeToStream(Stream stream, TransportContext context); | |
protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext context); | |
internal protected virtual Boolean TryComputeLength(out Int64& length); |
public class MultipartFormDataContent | |
: MultipartContent, IDisposable, IEnumerable`1<HttpContent>, IEnumerable | |
public virtual void Add(HttpContent content); | |
public void Add(HttpContent content, String name); | |
public void Add(HttpContent content, String name, String fileName); |
public class StreamContent | |
: HttpContent, IDisposable | |
protected virtual Stream CreateContentReadStream(); | |
protected virtual void Dispose(Boolean disposing); | |
protected virtual void SerializeToStream(Stream stream, TransportContext context); | |
protected virtual Task SerializeToStreamAsync(Stream stream, TransportContext context); | |
internal protected virtual Boolean TryComputeLength(out Int64& length); |
public class StringContent | |
: ByteArrayContent, IDisposable |