diff options
Diffstat (limited to 'OpenSim/Tests/Common/Mock/TestHttpRequest.cs')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestHttpRequest.cs | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestHttpRequest.cs b/OpenSim/Tests/Common/Mock/TestHttpRequest.cs index d07287d..4c5ea4a 100644 --- a/OpenSim/Tests/Common/Mock/TestHttpRequest.cs +++ b/OpenSim/Tests/Common/Mock/TestHttpRequest.cs | |||
@@ -37,85 +37,85 @@ namespace OpenSim.Tests.Common | |||
37 | public class TestHttpRequest: IHttpRequest | 37 | public class TestHttpRequest: IHttpRequest |
38 | { | 38 | { |
39 | private string _uriPath; | 39 | private string _uriPath; |
40 | public bool BodyIsComplete | 40 | public bool BodyIsComplete |
41 | { | 41 | { |
42 | get { return true; } | 42 | get { return true; } |
43 | } | 43 | } |
44 | public string[] AcceptTypes | 44 | public string[] AcceptTypes |
45 | { | 45 | { |
46 | get {return _acceptTypes; } | 46 | get {return _acceptTypes; } |
47 | } | 47 | } |
48 | private string[] _acceptTypes; | 48 | private string[] _acceptTypes; |
49 | public Stream Body | 49 | public Stream Body |
50 | { | 50 | { |
51 | get { return _body; } | 51 | get { return _body; } |
52 | set { _body = value;} | 52 | set { _body = value;} |
53 | } | 53 | } |
54 | private Stream _body; | 54 | private Stream _body; |
55 | public ConnectionType Connection | 55 | public ConnectionType Connection |
56 | { | 56 | { |
57 | get { return _connection; } | 57 | get { return _connection; } |
58 | set { _connection = value; } | 58 | set { _connection = value; } |
59 | } | 59 | } |
60 | private ConnectionType _connection; | 60 | private ConnectionType _connection; |
61 | public int ContentLength | 61 | public int ContentLength |
62 | { | 62 | { |
63 | get { return _contentLength; } | 63 | get { return _contentLength; } |
64 | set { _contentLength = value; } | 64 | set { _contentLength = value; } |
65 | } | 65 | } |
66 | private int _contentLength; | 66 | private int _contentLength; |
67 | public NameValueCollection Headers | 67 | public NameValueCollection Headers |
68 | { | 68 | { |
69 | get { return _headers; } | 69 | get { return _headers; } |
70 | } | 70 | } |
71 | private NameValueCollection _headers = new NameValueCollection(); | 71 | private NameValueCollection _headers = new NameValueCollection(); |
72 | 72 | ||
73 | public string HttpVersion { get; set; } | 73 | public string HttpVersion { get; set; } |
74 | 74 | ||
75 | public string Method | 75 | public string Method |
76 | { | 76 | { |
77 | get { return _method; } | 77 | get { return _method; } |
78 | set { _method = value; } | 78 | set { _method = value; } |
79 | } | 79 | } |
80 | private string _method = null; | 80 | private string _method = null; |
81 | public HttpInput QueryString | 81 | public HttpInput QueryString |
82 | { | 82 | { |
83 | get { return _queryString; } | 83 | get { return _queryString; } |
84 | } | 84 | } |
85 | private HttpInput _queryString = null; | 85 | private HttpInput _queryString = null; |
86 | public Uri Uri | 86 | public Uri Uri |
87 | { | 87 | { |
88 | get { return _uri; } | 88 | get { return _uri; } |
89 | set { _uri = value; } | 89 | set { _uri = value; } |
90 | } | 90 | } |
91 | private Uri _uri = null; | 91 | private Uri _uri = null; |
92 | public string[] UriParts | 92 | public string[] UriParts |
93 | { | 93 | { |
94 | get { return _uri.Segments; } | 94 | get { return _uri.Segments; } |
95 | } | 95 | } |
96 | public HttpParam Param | 96 | public HttpParam Param |
97 | { | 97 | { |
98 | get { return null; } | 98 | get { return null; } |
99 | } | 99 | } |
100 | public HttpForm Form | 100 | public HttpForm Form |
101 | { | 101 | { |
102 | get { return null; } | 102 | get { return null; } |
103 | } | 103 | } |
104 | public bool IsAjax | 104 | public bool IsAjax |
105 | { | 105 | { |
106 | get { return false; } | 106 | get { return false; } |
107 | } | 107 | } |
108 | public RequestCookies Cookies | 108 | public RequestCookies Cookies |
109 | { | 109 | { |
110 | get { return null; } | 110 | get { return null; } |
111 | } | 111 | } |
112 | 112 | ||
113 | public TestHttpRequest() | 113 | public TestHttpRequest() |
114 | { | 114 | { |
115 | HttpVersion = "HTTP/1.1"; | 115 | HttpVersion = "HTTP/1.1"; |
116 | } | 116 | } |
117 | 117 | ||
118 | public TestHttpRequest(string contentEncoding, string contentType, string userAgent, | 118 | public TestHttpRequest(string contentEncoding, string contentType, string userAgent, |
119 | string remoteAddr, string remotePort, string[] acceptTypes, | 119 | string remoteAddr, string remotePort, string[] acceptTypes, |
120 | ConnectionType connectionType, int contentLength, Uri uri) : base() | 120 | ConnectionType connectionType, int contentLength, Uri uri) : base() |
121 | { | 121 | { |
@@ -137,7 +137,7 @@ namespace OpenSim.Tests.Common | |||
137 | { | 137 | { |
138 | _headers.Add(name, value); | 138 | _headers.Add(name, value); |
139 | } | 139 | } |
140 | public int AddToBody(byte[] bytes, int offset, int length) | 140 | public int AddToBody(byte[] bytes, int offset, int length) |
141 | { | 141 | { |
142 | return 0; | 142 | return 0; |
143 | } | 143 | } |
@@ -168,7 +168,7 @@ namespace OpenSim.Tests.Common | |||
168 | set | 168 | set |
169 | { | 169 | { |
170 | _uriPath = value; | 170 | _uriPath = value; |
171 | 171 | ||
172 | } | 172 | } |
173 | } | 173 | } |
174 | } | 174 | } |