mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* FileWebRequest.cs: some methods implemented svn path=/trunk/mcs/; revision=4540
69 lines
1.4 KiB
C#
69 lines
1.4 KiB
C#
//
|
|
// System.Net.WebResponse
|
|
//
|
|
// Author:
|
|
// Lawrence Pit ([email protected])
|
|
//
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Net
|
|
{
|
|
[Serializable]
|
|
public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable
|
|
{
|
|
// Constructors
|
|
|
|
protected WebResponse () { }
|
|
|
|
protected WebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
throw new NotSupportedException ();
|
|
}
|
|
|
|
// Properties
|
|
|
|
public virtual long ContentLength {
|
|
get { throw new NotSupportedException (); }
|
|
set { throw new NotSupportedException (); }
|
|
}
|
|
|
|
public virtual string ContentType {
|
|
get { throw new NotSupportedException (); }
|
|
set { throw new NotSupportedException (); }
|
|
}
|
|
|
|
public virtual WebHeaderCollection Headers {
|
|
get { throw new NotSupportedException (); }
|
|
}
|
|
|
|
public virtual Uri ResponseUri {
|
|
get { throw new NotSupportedException (); }
|
|
}
|
|
|
|
// Methods
|
|
|
|
public virtual void Close()
|
|
{
|
|
throw new NotSupportedException ();
|
|
}
|
|
|
|
public virtual Stream GetResponseStream()
|
|
{
|
|
throw new NotSupportedException ();
|
|
}
|
|
|
|
void IDisposable.Dispose()
|
|
{
|
|
Close ();
|
|
}
|
|
|
|
void ISerializable.GetObjectData (SerializationInfo serializationInfo,
|
|
StreamingContext streamingContext)
|
|
{
|
|
throw new NotSupportedException ();
|
|
}
|
|
}
|
|
} |