From 547d8c90705e5fc3b85479261d7a5528afc89c83 Mon Sep 17 00:00:00 2001 From: "Hatter Jiang@Pixelbook" Date: Sun, 9 Aug 2020 12:55:28 +0800 Subject: [PATCH] feat: add parse_query_string --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index c873c8f..4b4a770 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,7 @@ mod error; use std::pin::Pin; use std::task::{ Context, Poll }; +use std::collections::HashMap; use bytes::Bytes; use clap::{ App, Arg }; use actix_web::{ web, HttpServer, HttpRequest, HttpResponse }; @@ -68,3 +69,9 @@ async fn main() -> std::io::Result<()> { .run() .await } + +fn parse_query_string(query_string: &str) -> HashMap> { + let map = HashMap::new(); + + map +}