var searchIndex = {}; searchIndex["formdata"] = {"doc":"This crate parses and processes `hyper::server::Request` data\nthat contains `multipart/form-data` content.","items":[[3,"ContentDispositionFormData","formdata","We define a Content-Disposition form-data only header, which is found within\nthe mime multipart sections. NOT FOR GENERAL USE, as it is very limited\nin scope.",null,null],[12,"name","","",0,null],[12,"filename","","",0,null],[3,"UploadedFile","","This structure represents uploaded files which were received as\npart of the `multipart/form-data` parsing. They are streamed to\ndisk because they may not fit in memory.",null,null],[12,"path","","This is the temporary file where the data was saved.",1,null],[12,"filename","","This is the filename that was specified in the data, unfiltered. It may or may not\nbe legal on the local filesystem.",1,null],[12,"content_type","","This is the content-type that was specified in the data, unvalidated.",1,null],[12,"size","","This is the actual size of the file received",1,null],[5,"parse_multipart","","This function parses and processes `hyper::server::Request` data\nthat contains `multipart/form-data` content. It does this in a streaming\nfashion, saving embedded uploaded files to disk as they are encountered by\nthe parser.",null,{"inputs":[{"name":"request"}],"output":{"name":"result"}}],[0,"buf","","",null,null],[8,"BufReadPlus","formdata::buf","This trait extends any type that implements BufRead with a\nstream_until_token() function.",null,null],[11,"stream_until_token","","Stream all bytes to out until the `token` delimiter is reached.",2,null],[11,"eq","formdata","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"header_name","","",0,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",0,null],[11,"fmt_header","","",0,null],[0,"error","","",null,null],[4,"Error","formdata::error","An error type for the `formdata` crate",null,null],[13,"NoRequestContentType","","The hyper request did not have a content-type header",3,null],[13,"NotMultipart","","The hyper request content-type top-level Mime was not `Multipart`",3,null],[13,"NotFormData","","The hyper request content-type sub-level Mime was not `FormData`",3,null],[13,"BoundaryNotSpecified","","The content-type header failed to specify boundary token",3,null],[13,"PartialHeaders","","A multipart section contained only partial headers",3,null],[13,"MissingDisposition","","A multipart section did not have the required content-disposition header",3,null],[13,"NoName","","A multipart section content-disposition header failed to specify a name",3,null],[13,"Eof","","The request body ended prior to reaching the expected terminating boundary",3,null],[13,"Httparse","","A parse error occurred while parsing the headers of a multipart section",3,null],[13,"Io","","An I/O error occurred",3,null],[13,"Hyper","","An error was returned from hyper",3,null],[13,"Utf8","","An error occurred during UTF-8 processing",3,null],[11,"fmt","","",3,null],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",3,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[11,"fmt","","",3,null],[11,"description","","",3,null],[8,"Request","formdata","A wrapper trait for `hyper::server::Request` data to provide parsing multipart requests to any\nfront-end that provides a `hyper::header::Headers` and a `std::io::Read` of the request's\nentire body.",null,null],[10,"headers","","Returns a reference to the request's Hyper headers.",4,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null]],"paths":[[3,"ContentDispositionFormData"],[3,"UploadedFile"],[8,"BufReadPlus"],[4,"Error"],[8,"Request"]]}; initSearch(searchIndex);