aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/OSHttpHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/OSHttpHandler.cs25
1 files changed, 23 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/OSHttpHandler.cs b/OpenSim/Framework/Servers/OSHttpHandler.cs
index da96cca..a9f42f3 100644
--- a/OpenSim/Framework/Servers/OSHttpHandler.cs
+++ b/OpenSim/Framework/Servers/OSHttpHandler.cs
@@ -59,10 +59,18 @@ namespace OpenSim.Framework.Servers
59 { 59 {
60 Unprocessed, 60 Unprocessed,
61 Pass, 61 Pass,
62 Handled, 62 Done,
63 Detached,
64 } 63 }
65 64
65 /// <summary>
66 /// An OSHttpHandler that matches on the "content-type" header can
67 /// supply an OSHttpContentTypeChecker delegate which will be
68 /// invoked by the request matcher in OSHttpRequestPump.
69 /// </summary>
70 /// <returns>true if the handler is interested in the content;
71 /// false otherwise</returns>
72 public delegate bool OSHttpContentTypeChecker(OSHttpRequest req);
73
66 public interface OSHttpHandler 74 public interface OSHttpHandler
67 { 75 {
68 /// <summary> 76 /// <summary>
@@ -98,6 +106,19 @@ namespace OpenSim.Framework.Servers
98 get; 106 get;
99 } 107 }
100 108
109
110 /// <summary>
111 /// An OSHttpHandler that matches on the "content-type" header can
112 /// supply an OSHttpContentTypeChecker delegate which will be
113 /// invoked by the request matcher in OSHttpRequestPump.
114 /// </summary>
115 /// <returns>true if the handler is interested in the content;
116 /// false otherwise</returns>
117 OSHttpContentTypeChecker ContentTypeChecker
118 {
119 get;
120 }
121
101 OSHttpHandlerResult Process(OSHttpRequest request); 122 OSHttpHandlerResult Process(OSHttpRequest request);
102 } 123 }
103} \ No newline at end of file 124} \ No newline at end of file