mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* HttpWebRequest.cs: handle 304 � la MS. * WebConnection.cs: set the response data when reading 0 bytes. svn path=/trunk/mcs/; revision=18518
40 lines
684 B
C#
40 lines
684 B
C#
//
|
|
// System.Net.WebConnectionData
|
|
//
|
|
// Authors:
|
|
// Gonzalo Paniagua Javier ([email protected])
|
|
//
|
|
// (C) 2003 Ximian, Inc (http://www.ximian.com)
|
|
//
|
|
|
|
using System.IO;
|
|
|
|
namespace System.Net
|
|
{
|
|
class WebConnectionData
|
|
{
|
|
public HttpWebRequest request;
|
|
public int StatusCode;
|
|
public string StatusDescription;
|
|
public WebHeaderCollection Headers;
|
|
public Version Version;
|
|
public Stream stream;
|
|
public byte [] initialData;
|
|
public int initialOffset;
|
|
public int length;
|
|
|
|
public void Init ()
|
|
{
|
|
request = null;
|
|
StatusCode = -1;
|
|
StatusDescription = null;
|
|
Headers = null;
|
|
stream = null;
|
|
initialData = null;
|
|
initialOffset = 0;
|
|
length = 0;
|
|
}
|
|
}
|
|
}
|
|
|