-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIWebRequest.cs
More file actions
58 lines (52 loc) · 2.38 KB
/
IWebRequest.cs
File metadata and controls
58 lines (52 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.IO;
using System.Net;
using System.Net.Cache;
using System.Net.Security;
using System.Security.Principal;
namespace Gsemac.Net {
public interface IWebRequest {
/// <inheritdoc cref="WebRequest.Method"/>
string Method { get; set; }
/// <inheritdoc cref="WebRequest.AuthenticationLevel"/>
AuthenticationLevel AuthenticationLevel { get; set; }
/// <inheritdoc cref="WebRequest.Timeout"/>
int Timeout { get; set; }
/// <inheritdoc cref="WebRequest.PreAuthenticate"/>
bool PreAuthenticate { get; set; }
/// <inheritdoc cref="WebRequest.Proxy"/>
IWebProxy Proxy { get; set; }
/// <inheritdoc cref="WebRequest.UseDefaultCredentials"/>
bool UseDefaultCredentials { get; set; }
/// <inheritdoc cref="WebRequest.Credentials"/>
ICredentials Credentials { get; set; }
/// <inheritdoc cref="WebRequest.ContentType"/>
string ContentType { get; set; }
/// <inheritdoc cref="WebRequest.ContentLength"/>
long ContentLength { get; set; }
/// <inheritdoc cref="WebRequest.Headers"/>
WebHeaderCollection Headers { get; set; }
/// <inheritdoc cref="WebRequest.ConnectionGroupName"/>
string ConnectionGroupName { get; set; }
/// <inheritdoc cref="WebRequest.ImpersonationLevel"/>
TokenImpersonationLevel ImpersonationLevel { get; set; }
/// <inheritdoc cref="WebRequest.CachePolicy"/>
RequestCachePolicy CachePolicy { get; set; }
/// <inheritdoc cref="WebRequest.RequestUri"/>
Uri RequestUri { get; }
/// <inheritdoc cref="WebRequest.Abort"/>
void Abort();
/// <inheritdoc cref="WebRequest.BeginGetRequestStream"/>
IAsyncResult BeginGetRequestStream(AsyncCallback callback, object state);
/// <inheritdoc cref="WebRequest.BeginGetResponse"/>
IAsyncResult BeginGetResponse(AsyncCallback callback, object state);
/// <inheritdoc cref="WebRequest.EndGetRequestStream"/>
Stream EndGetRequestStream(IAsyncResult asyncResult);
/// <inheritdoc cref="WebRequest.EndGetResponse"/>
WebResponse EndGetResponse(IAsyncResult asyncResult);
/// <inheritdoc cref="WebRequest.GetRequestStream"/>
Stream GetRequestStream();
/// <inheritdoc cref="WebRequest.GetResponse"/>
WebResponse GetResponse();
}
}