Revenj.Http.HttpSocketContext.HttpSocketContext C# (CSharp) Method

HttpSocketContext() static private method

static private HttpSocketContext ( ) : System
return System
        static HttpSocketContext()
        {
            for (int i = 0; i < Lower.Length; i++)
                Lower[i] = i >= 'A' && i <= 'Z' ? (char)(i - 'A' + 'a') : (char)i;

            ZeroOffset[0] = 1;

            SetupResponse(HttpResponse10, "HTTP/1.0");
            SetupResponse(HttpResponse11, "HTTP/1.1");

            DateDayNames[0] = ASCII.GetBytes("Mon");
            DateDayNames[1] = ASCII.GetBytes("Tue");
            DateDayNames[2] = ASCII.GetBytes("Wed");
            DateDayNames[3] = ASCII.GetBytes("Thu");
            DateDayNames[4] = ASCII.GetBytes("Fri");
            DateDayNames[5] = ASCII.GetBytes("Sat");
            DateDayNames[6] = ASCII.GetBytes("Sun");

            DateDayMonths[0] = ASCII.GetBytes("Jan");
            DateDayMonths[1] = ASCII.GetBytes("Feb");
            DateDayMonths[2] = ASCII.GetBytes("Mar");
            DateDayMonths[3] = ASCII.GetBytes("Apr");
            DateDayMonths[4] = ASCII.GetBytes("May");
            DateDayMonths[5] = ASCII.GetBytes("Jun");
            DateDayMonths[6] = ASCII.GetBytes("Jul");
            DateDayMonths[7] = ASCII.GetBytes("Aug");
            DateDayMonths[8] = ASCII.GetBytes("Sep");
            DateDayMonths[9] = ASCII.GetBytes("Oct");
            DateDayMonths[10] = ASCII.GetBytes("Nov");
            DateDayMonths[11] = ASCII.GetBytes("Dec");

            for (int i = 0; i < 10; i++)
                DateNumbers[i] = ASCII.GetBytes("0" + i);
            for (int i = 10; i < 100; i++)
                DateNumbers[i] = ASCII.GetBytes(i.ToString());
        }

Same methods

HttpSocketContext::HttpSocketContext ( string prefix, int limit, Routes routes ) : System