Ejemplo n.º 1
0
        public static Request CreateRequest(string resource, IOSHttpRequest httpRequest)
        {
            Request request = new Request();
            request.Resource = resource;
            request.Cookies = httpRequest.Cookies;
            request.IPEndPoint = httpRequest.RemoteIPEndPoint;
            request.Query = httpRequest.Query;
            request.LanguageInfo = Localization.GetLanguageInfo(httpRequest.Headers.Get("accept-language"));

            return request;
        }
Ejemplo n.º 2
0
 public Environment(Request req)
 {
     m_Request = req;
 }
Ejemplo n.º 3
0
        public static Request CreateRequest(string resource, OSHttpRequest httpRequest)
        {
            Request request = new Request();
            request.Resource = resource;
            request.Cookies = httpRequest.Cookies;
            request.IPEndPoint = httpRequest.RemoteIPEndPoint;
            request.Query = httpRequest.Query;

            return request;
        }