aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Mock/TestHttpClientContext.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Mock/TestHttpClientContext.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestHttpClientContext.cs b/OpenSim/Tests/Common/Mock/TestHttpClientContext.cs
index be437dc..7b20b8c 100644
--- a/OpenSim/Tests/Common/Mock/TestHttpClientContext.cs
+++ b/OpenSim/Tests/Common/Mock/TestHttpClientContext.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Tests.Common
43 /// Bodies of responses from the server. 43 /// Bodies of responses from the server.
44 /// </summary> 44 /// </summary>
45 public string ResponseBody 45 public string ResponseBody
46 { 46 {
47 get { return Encoding.UTF8.GetString(m_responseStream.ToArray()); } 47 get { return Encoding.UTF8.GetString(m_responseStream.ToArray()); }
48 } 48 }
49 49
@@ -56,8 +56,8 @@ namespace OpenSim.Tests.Common
56 56
57 public bool IsSecured { get; set; } 57 public bool IsSecured { get; set; }
58 58
59 public bool Secured 59 public bool Secured
60 { 60 {
61 get { return IsSecured; } 61 get { return IsSecured; }
62 set { IsSecured = value; } 62 set { IsSecured = value; }
63 } 63 }
@@ -67,7 +67,7 @@ namespace OpenSim.Tests.Common
67 Secured = secured; 67 Secured = secured;
68 } 68 }
69 69
70 public void Disconnect(SocketError error) 70 public void Disconnect(SocketError error)
71 { 71 {
72// Console.WriteLine("TestHttpClientContext.Disconnect Received disconnect with status {0}", error); 72// Console.WriteLine("TestHttpClientContext.Disconnect Received disconnect with status {0}", error);
73 } 73 }
@@ -76,18 +76,18 @@ namespace OpenSim.Tests.Common
76 public void Respond(string httpVersion, HttpStatusCode statusCode, string reason) {Console.WriteLine("xx");} 76 public void Respond(string httpVersion, HttpStatusCode statusCode, string reason) {Console.WriteLine("xx");}
77 public void Respond(string body) { Console.WriteLine("xxx");} 77 public void Respond(string body) { Console.WriteLine("xxx");}
78 78
79 public void Send(byte[] buffer) 79 public void Send(byte[] buffer)
80 { 80 {
81 // Getting header data here 81 // Getting header data here
82// Console.WriteLine("xxxx: Got {0}", Encoding.UTF8.GetString(buffer)); 82// Console.WriteLine("xxxx: Got {0}", Encoding.UTF8.GetString(buffer));
83 } 83 }
84 84
85 public void Send(byte[] buffer, int offset, int size) 85 public void Send(byte[] buffer, int offset, int size)
86 { 86 {
87// Util.PrintCallStack(); 87// Util.PrintCallStack();
88// 88//
89// Console.WriteLine( 89// Console.WriteLine(
90// "TestHttpClientContext.Send(byte[], int, int) got offset={0}, size={1}, buffer={2}", 90// "TestHttpClientContext.Send(byte[], int, int) got offset={0}, size={1}, buffer={2}",
91// offset, size, Encoding.UTF8.GetString(buffer)); 91// offset, size, Encoding.UTF8.GetString(buffer));
92 92
93 m_responseStream.Write(buffer, offset, size); 93 m_responseStream.Write(buffer, offset, size);