mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* HttpWebRequest_2_1.cs, HttpWebResponse_2_1.cs : added new sources for those classes for 2.1 (in 2.1 they are almost abstract, while in 2.0 they are concrete). * HttpRequestCreator.cs, ServicePoint.cs : #ifdef 2.0 dependencies out. * net_2_1_System.dll.sources : Replaced HttpWebRequest and HttpWebResponse with those for 2.1, and removed related 2.0-only types. svn path=/trunk/mcs/; revision=83773
104 lines
3.7 KiB
C#
104 lines
3.7 KiB
C#
//
|
|
// System.Net.HttpWebRequest (for 2.1 profile)
|
|
//
|
|
// Authors:
|
|
// Atsushi Enomoto <[email protected]>
|
|
//
|
|
// (c) 2007 Novell, Inc. (http://www.novell.com)
|
|
//
|
|
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
|
|
#if NET_2_1
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Configuration;
|
|
using System.IO;
|
|
using System.Net.Sockets;
|
|
using System.Runtime.Remoting.Messaging;
|
|
using System.Runtime.Serialization;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using System.Threading;
|
|
|
|
namespace System.Net
|
|
{
|
|
|
|
public abstract class HttpWebRequest
|
|
{
|
|
public HttpWebRequest (Uri uri)
|
|
{
|
|
}
|
|
|
|
public abstract void Abort();
|
|
public abstract void AddRange (int range);
|
|
public abstract void AddRange (int from, int to);
|
|
public abstract void AddRange (string rangeSpecifier, int range);
|
|
public abstract void AddRange (string rangeSpecifier, int from, int to);
|
|
public abstract IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state);
|
|
public abstract IAsyncResult BeginGetResponse (AsyncCallback callback, object state);
|
|
public abstract Stream EndGetRequestStream (IAsyncResult asyncResult);
|
|
public abstract HttpWebResponse EndGetResponse (IAsyncResult asyncResult);
|
|
public abstract Stream GetRequestStream ();
|
|
public abstract HttpWebResponse GetResponse ();
|
|
|
|
public abstract string Accept { get; set; }
|
|
public abstract Uri Address { get; }
|
|
public abstract bool AllowAutoRedirect { get; set; }
|
|
public abstract bool AllowWriteStreamBuffering { get; set; }
|
|
public abstract DecompressionMethods AutomaticDecompression { get; set; }
|
|
public abstract string Connection { get; set; }
|
|
public abstract long ContentLength { get; set; }
|
|
public abstract string ContentType { get; set; }
|
|
public abstract string Expect { get; set; }
|
|
public abstract bool HaveResponse { get; }
|
|
public abstract WebHeaderCollection Headers { get; set; }
|
|
public abstract bool KeepAlive { get; set; }
|
|
public abstract string MediaType { get; set; }
|
|
public abstract string Method { get; set; }
|
|
public abstract bool Pipelined { get; set; }
|
|
public abstract bool PreAuthenticate { get; set; }
|
|
|
|
public abstract int ReadWriteTimeout { get; set; }
|
|
public abstract string Referer { get; set; }
|
|
public abstract Uri RequestUri { get; }
|
|
public abstract bool SendChunked { get; set; }
|
|
public abstract int Timeout { get; set; }
|
|
public abstract string TransferEncoding { get; set; }
|
|
public abstract string UserAgent { get; set; }
|
|
|
|
Version version;
|
|
public virtual Version ProtocolVersion {
|
|
get { return version; }
|
|
set {
|
|
if (value != HttpVersion.Version10 && value != HttpVersion.Version11)
|
|
throw new ArgumentException ("value");
|
|
|
|
version = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|