public HttpReader( SessionFactory sessionFactory, HttpStringQueryParser httpQueryParser, IConfigurationProvider config, ILogger <HttpReader> logger) { _logger = logger; _sessionFactory = sessionFactory; _httpQueryParser = httpQueryParser; _config = config; }
public async Task <string> Format(HttpRequest request, ITextModel tokenizer) { var parser = new HttpStringQueryParser(new QueryParser <string>(_sessionFactory, tokenizer, _log)); var query = await parser.ParseRequest(request); var dictionary = new Dictionary <string, object>(); parser.ParseQuery(query, dictionary); return(JsonConvert.SerializeObject(dictionary, Formatting.Indented)); }