Changeset 351 for binary-improvements/MapRendering/Web/API/WebAPI.cs
- Timestamp:
- Jan 19, 2019, 6:12:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/WebAPI.cs
r332 r351 17 17 #endif 18 18 19 public static void WriteJSON (HttpListenerResponse resp, JSONNoderoot) {19 public static void WriteJSON (HttpListenerResponse _resp, JSONNode _root) { 20 20 #if ENABLE_PROFILER 21 21 jsonSerializeSampler.Begin (); 22 22 #endif 23 23 StringBuilder sb = new StringBuilder (); 24 root.ToString (sb);24 _root.ToString (sb); 25 25 #if ENABLE_PROFILER 26 26 jsonSerializeSampler.End (); … … 28 28 #endif 29 29 byte[] buf = Encoding.UTF8.GetBytes (sb.ToString ()); 30 resp.ContentLength64 = buf.Length;31 resp.ContentType = "application/json";32 resp.ContentEncoding = Encoding.UTF8;33 resp.OutputStream.Write (buf, 0, buf.Length);30 _resp.ContentLength64 = buf.Length; 31 _resp.ContentType = "application/json"; 32 _resp.ContentEncoding = Encoding.UTF8; 33 _resp.OutputStream.Write (buf, 0, buf.Length); 34 34 #if ENABLE_PROFILER 35 35 netWriteSampler.End (); … … 45 45 } 46 46 47 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnectionuser,48 int permissionLevel);47 public abstract void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 48 int _permissionLevel); 49 49 50 50 public virtual int DefaultPermissionLevel () {
Note:
See TracChangeset
for help on using the changeset viewer.