var searchIndex = {}; searchIndex["minihttpse"] = {"doc":"minihttpse is a http response parse for rust,is simple and easy # Examples `let s = \"HTTP/1.1 200 OK\\r\\n\\ Content-Length: 3059\\r\\n\\ Server: GWS/2.0\\r\\n\\ Date: Sat, 11 Jan 2003 02:44:04 GMT\\r\\n\\ Content-Type: text/html\\r\\n\\ Cache-control: private\\r\\n\\ Set-Cookie: PREF=ID=73d4aef52e57bae9:TM=1042253044:LM=1042253044:S=SMCc_HRPCQiqyX9j; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com\\r\\n\\ Connection: keep-alive\\r\\n\\ \\r\\n\\ hello\"; let res = Response::new(s.as_bytes().to_owned()).unwrap(); assert_eq!(res.reason(),\"OK\"); assert_eq!(res.status_code,200); assert_eq!(res.headers.get(\"Server\"),Some(&\"GWS/2.0\".to_owned())); println!(\"body {}\",res.text());`","items":[[3,"Response","minihttpse","http response object",null,null],[4,"HttpError","","http response parse error type",null,null],[13,"Parse","","",0,null],[11,"fmt","","",0,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"clone","","",0,{"inputs":[{"name":"self"}],"output":{"name":"httperror"}}],[11,"fmt","","",1,{"inputs":[{"name":"self"},{"name":"formatter"}],"output":{"name":"result"}}],[11,"clone","","",1,{"inputs":[{"name":"self"}],"output":{"name":"response"}}],[11,"new","","parse http response to Response object. # Examples `let s = \"HTTP/1.1 200 OK\\r\\n\\ Content-Length: 3059\\r\\n\\ Server: GWS/2.0\\r\\n\\ Date: Sat, 11 Jan 2003 02:44:04 GMT\\r\\n\\ Content-Type: text/html\\r\\n\\ Cache-control: private\\r\\n\\ Set-Cookie: PREF=ID=73d4aef52e57bae9:TM=1042253044:LM=1042253044:S=SMCc_HRPCQiqyX9j; expires=Sun, 17-Jan-2038 19:14:07 GMT; path=/; domain=.google.com\\r\\n\\ Connection: keep-alive\\r\\n\\ \\r\\n\\ hello\"; let res = Response::new(s.as_bytes().to_owned()).unwrap(); assert_eq!(res.reason(),\"OK\"); assert_eq!(res.status_code,200); assert_eq!(res.headers.get(\"Server\"),Some(&\"GWS/2.0\".to_owned())); println!(\"body {}\",res.text());`",1,{"inputs":[{"name":"vec"}],"output":{"name":"result"}}],[11,"status_code","","return status code(eg:200)",1,{"inputs":[{"name":"self"}],"output":{"name":"usize"}}],[11,"text","","return response body string",1,{"inputs":[{"name":"self"}],"output":{"name":"string"}}],[11,"content","","return response raw body",1,{"inputs":[{"name":"self"}],"output":{"name":"vec"}}],[11,"headers","","return response headers hashmap",1,{"inputs":[{"name":"self"}],"output":{"name":"hashmap"}}],[11,"reason","","return response reason",1,{"inputs":[{"name":"self"}],"output":{"name":"string"}}]],"paths":[[4,"HttpError"],[3,"Response"]]}; initSearch(searchIndex);