Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/WebAPI.cs

    r309 r325  
    1 using System;
    21using System.Net;
    32using System.Text;
     3using AllocsFixes.JSON;
    44
    5 namespace AllocsFixes.NetConnections.Servers.Web.API
    6 {
    7         public abstract class WebAPI
    8         {
    9                 public static void WriteJSON (HttpListenerResponse resp, JSON.JSONNode root)
    10                 {
     5namespace AllocsFixes.NetConnections.Servers.Web.API {
     6        public abstract class WebAPI {
     7                public static void WriteJSON (HttpListenerResponse resp, JSONNode root) {
    118                        StringBuilder sb = new StringBuilder ();
    129                        root.ToString (sb);
     
    1815                }
    1916
    20                 public static void WriteText (HttpListenerResponse _resp, string _text)
    21                 {
     17                public static void WriteText (HttpListenerResponse _resp, string _text) {
    2218                        byte[] buf = Encoding.UTF8.GetBytes (_text);
    2319                        _resp.ContentLength64 = buf.Length;
     
    2723                }
    2824
    29                 public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel);
     25                public abstract void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user,
     26                        int permissionLevel);
    3027
    3128                public virtual int DefaultPermissionLevel () {
     
    3431        }
    3532}
    36 
Note: See TracChangeset for help on using the changeset viewer.