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); }
public static string Header(HttpRequest request, string key) { return(HttpHeaderUtil.Value(request.Headers, key)); }
public static void ReplaceHeader(HttpRequest request, string header, string value) { HttpHeaderUtil.Replace(request.Headers, header, value); }