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; }
public Environment(Request req) { m_Request = req; }
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; }