Esempio n. 1
0
        public static SearchParams GetSearchParams(HttpRequest request)
        {
            List <Tuple <string, string> > parameters = HttpHeaderUtil.TupledParameters(request).Where(tp => tp.Item1 != "_format").ToList();
            SearchParams searchCommand = SearchParams.FromUriParamList(parameters);

            return(searchCommand);
        }
Esempio n. 2
0
 public static string Header(HttpRequest request, string key)
 {
     return(HttpHeaderUtil.Value(request.Headers, key));
 }
Esempio n. 3
0
 public static void ReplaceHeader(HttpRequest request, string header, string value)
 {
     HttpHeaderUtil.Replace(request.Headers, header, value);
 }