forked from dotnet/systemweb-adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHttpResponseBase.cs
135 lines (100 loc) · 4.82 KB
/
HttpResponseBase.cs
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Specialized;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Text;
using Microsoft.AspNetCore.SystemWebAdapters;
namespace System.Web
{
[SuppressMessage("Design", "CA1065:Do not raise exceptions in unexpected locations", Justification = Constants.ApiFromAspNet)]
public class HttpResponseBase
{
public virtual int StatusCode
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual int SubStatusCode
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual string StatusDescription
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual NameValueCollection Headers
{
get => throw new NotImplementedException();
}
public virtual bool HeadersWritten
{
get
{
throw new NotImplementedException();
}
}
public virtual bool TrySkipIisCustomErrors
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual bool IsRequestBeingRedirected => throw new NotImplementedException();
public virtual string? ContentType
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual Encoding ContentEncoding
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual bool BufferOutput => throw new NotImplementedException();
public virtual Stream OutputStream => throw new NotImplementedException();
public virtual HttpCookieCollection Cookies => throw new NotImplementedException();
public virtual void AppendCookie(HttpCookie cookie) => throw new NotImplementedException();
public virtual bool SuppressContent
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual string Charset
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual TextWriter Output
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
[AllowNull]
public virtual Stream Filter
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public virtual HttpCachePolicyBase Cache => throw new NotImplementedException();
public virtual bool IsClientConnected => throw new NotImplementedException();
public virtual void AddHeader(string name, string value) => throw new NotImplementedException();
public virtual void AppendHeader(string name, string value) => throw new NotImplementedException();
public virtual void SetCookie(HttpCookie cookie) => throw new NotImplementedException();
[SuppressMessage("Naming", "CA1716:Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member", Justification = Constants.ApiFromAspNet)]
public virtual void End() => throw new NotImplementedException();
public virtual void Write(char ch) => throw new NotImplementedException();
public virtual void Write(string s) => throw new NotImplementedException();
public virtual void Write(object obj) => throw new NotImplementedException();
public virtual void BinaryWrite(byte[] buffer) => throw new NotImplementedException();
public virtual void Clear() => throw new NotImplementedException();
public virtual void ClearContent() => throw new NotImplementedException();
public virtual void ClearHeaders() => throw new NotImplementedException();
public virtual void WriteFile(string filename) => throw new NotImplementedException();
public virtual void TransmitFile(string filename) => throw new NotImplementedException();
public virtual void TransmitFile(string filename, long offset, long length) => throw new NotImplementedException();
[return: NotNullIfNotNull(nameof(response))]
public static implicit operator HttpResponseBase?(HttpResponseCore? response) => response?.HttpContext.AsSystemWebBase().Response;
}
}