109 lines
5.1 KiB
C#
109 lines
5.1 KiB
C#
using System;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Container class for <see cref="T:System.Net.WebRequestMethods.Ftp" />, <see cref="T:System.Net.WebRequestMethods.File" />, and <see cref="T:System.Net.WebRequestMethods.Http" /> classes. This class cannot be inherited</summary>
|
|
// Token: 0x02000270 RID: 624
|
|
public static class WebRequestMethods
|
|
{
|
|
/// <summary>Represents the types of file protocol methods that can be used with a FILE request. This class cannot be inherited.</summary>
|
|
// Token: 0x02000271 RID: 625
|
|
public static class File
|
|
{
|
|
/// <summary>Represents the FILE GET protocol method that is used to retrieve a file from a specified location.</summary>
|
|
// Token: 0x04001288 RID: 4744
|
|
public const string DownloadFile = "GET";
|
|
|
|
/// <summary>Represents the FILE PUT protocol method that is used to copy a file to a specified location.</summary>
|
|
// Token: 0x04001289 RID: 4745
|
|
public const string UploadFile = "PUT";
|
|
}
|
|
|
|
/// <summary>Represents the types of FTP protocol methods that can be used with an FTP request. This class cannot be inherited.</summary>
|
|
// Token: 0x02000272 RID: 626
|
|
public static class Ftp
|
|
{
|
|
/// <summary>Represents the FTP APPE protocol method that is used to append a file to an existing file on an FTP server.</summary>
|
|
// Token: 0x0400128A RID: 4746
|
|
public const string AppendFile = "APPE";
|
|
|
|
/// <summary>Represents the FTP DELE protocol method that is used to delete a file on an FTP server.</summary>
|
|
// Token: 0x0400128B RID: 4747
|
|
public const string DeleteFile = "DELE";
|
|
|
|
/// <summary>Represents the FTP RETR protocol method that is used to download a file from an FTP server.</summary>
|
|
// Token: 0x0400128C RID: 4748
|
|
public const string DownloadFile = "RETR";
|
|
|
|
/// <summary>Represents the FTP SIZE protocol method that is used to retrieve the size of a file on an FTP server.</summary>
|
|
// Token: 0x0400128D RID: 4749
|
|
public const string GetFileSize = "SIZE";
|
|
|
|
/// <summary>Represents the FTP MDTM protocol method that is used to retrieve the date-time stamp from a file on an FTP server.</summary>
|
|
// Token: 0x0400128E RID: 4750
|
|
public const string GetDateTimestamp = "MDTM";
|
|
|
|
/// <summary>Represents the FTP NLIST protocol method that gets a short listing of the files on an FTP server.</summary>
|
|
// Token: 0x0400128F RID: 4751
|
|
public const string ListDirectory = "NLST";
|
|
|
|
/// <summary>Represents the FTP LIST protocol method that gets a detailed listing of the files on an FTP server.</summary>
|
|
// Token: 0x04001290 RID: 4752
|
|
public const string ListDirectoryDetails = "LIST";
|
|
|
|
/// <summary>Represents the FTP MKD protocol method creates a directory on an FTP server.</summary>
|
|
// Token: 0x04001291 RID: 4753
|
|
public const string MakeDirectory = "MKD";
|
|
|
|
/// <summary>Represents the FTP PWD protocol method that prints the name of the current working directory.</summary>
|
|
// Token: 0x04001292 RID: 4754
|
|
public const string PrintWorkingDirectory = "PWD";
|
|
|
|
/// <summary>Represents the FTP RMD protocol method that removes a directory.</summary>
|
|
// Token: 0x04001293 RID: 4755
|
|
public const string RemoveDirectory = "RMD";
|
|
|
|
/// <summary>Represents the FTP RENAME protocol method that renames a directory.</summary>
|
|
// Token: 0x04001294 RID: 4756
|
|
public const string Rename = "RENAME";
|
|
|
|
/// <summary>Represents the FTP STOR protocol method that uploads a file to an FTP server.</summary>
|
|
// Token: 0x04001295 RID: 4757
|
|
public const string UploadFile = "STOR";
|
|
|
|
/// <summary>Represents the FTP STOU protocol that uploads a file with a unique name to an FTP server.</summary>
|
|
// Token: 0x04001296 RID: 4758
|
|
public const string UploadFileWithUniqueName = "STOU";
|
|
}
|
|
|
|
/// <summary>Represents the types of HTTP protocol methods that can be used with an HTTP request.</summary>
|
|
// Token: 0x02000273 RID: 627
|
|
public static class Http
|
|
{
|
|
/// <summary>Represents the HTTP CONNECT protocol method that is used with a proxy that can dynamically switch to tunneling, as in the case of SSL tunneling.</summary>
|
|
// Token: 0x04001297 RID: 4759
|
|
public const string Connect = "CONNECT";
|
|
|
|
/// <summary>Represents an HTTP GET protocol method. </summary>
|
|
// Token: 0x04001298 RID: 4760
|
|
public const string Get = "GET";
|
|
|
|
/// <summary>Represents an HTTP HEAD protocol method. The HEAD method is identical to GET except that the server only returns message-headers in the response, without a message-body.</summary>
|
|
// Token: 0x04001299 RID: 4761
|
|
public const string Head = "HEAD";
|
|
|
|
/// <summary>Represents an HTTP MKCOL request that creates a new collection (such as a collection of pages) at the location specified by the request-Uniform Resource Identifier (URI).</summary>
|
|
// Token: 0x0400129A RID: 4762
|
|
public const string MkCol = "MKCOL";
|
|
|
|
/// <summary>Represents an HTTP POST protocol method that is used to post a new entity as an addition to a URI.</summary>
|
|
// Token: 0x0400129B RID: 4763
|
|
public const string Post = "POST";
|
|
|
|
/// <summary>Represents an HTTP PUT protocol method that is used to replace an entity identified by a URI.</summary>
|
|
// Token: 0x0400129C RID: 4764
|
|
public const string Put = "PUT";
|
|
}
|
|
}
|
|
}
|