var searchIndex = {}; searchIndex["http_muncher"] = {"doc":"","items":[[3,"Parser","http_muncher","The main parser interface.",null,null],[5,"version","","Returns a version of the underlying `http-parser` library.",null,{"inputs":[],"output":{"name":"string"}}],[8,"ParserHandler","","Used to define a set of callbacks in your code.\nThey would be called by the parser whenever new data is available.\nYou should bear in mind that the data might get in your callbacks in a partial form.",null,null],[11,"on_url","","Called when the URL part of a request becomes available.\nE.g. for `GET /forty-two HTTP/1.1` it will be called with `"/forty_two"` argument.",0,null],[11,"on_status","","Called when a response status becomes available.",0,null],[11,"on_header_field","","Called for each HTTP header key part.",0,null],[11,"on_header_value","","Called for each HTTP header value part.",0,null],[11,"on_body","","Called with body text as an argument when the new part becomes available.",0,null],[11,"on_headers_complete","","Notified when all available headers have been processed.",0,null],[11,"on_message_begin","","Notified when the parser receives first bytes to parse.",0,null],[11,"on_message_complete","","Notified when the parser has finished its job.",0,null],[11,"on_chunk_header","","",0,null],[11,"on_chunk_complete","","",0,null],[11,"response","","Creates a new parser instance for an HTTP response.",1,{"inputs":[{"name":"parserhandler"}],"output":{"name":"parser"}}],[11,"request","","Creates a new parser instance for an HTTP request.",1,{"inputs":[{"name":"parserhandler"}],"output":{"name":"parser"}}],[11,"request_and_response","","Creates a new parser instance to handle both HTTP requests and responses.",1,{"inputs":[{"name":"parserhandler"}],"output":{"name":"parser"}}],[11,"parse","","Parses the provided `data` and returns a number of bytes read.",1,null],[11,"http_version","","Returns an HTTP request or response version.",1,null],[11,"status_code","","Returns an HTTP response status code (think *404*).",1,null],[11,"http_method","","Returns an HTTP method string (`GET`, `POST`, and so on).",1,null],[11,"has_error","","Checks if the last `parse` call was finished successfully.\nReturns `true` if it wasn't.",1,null],[11,"error","","In case of a parsing error returns its mnemonic name.",1,null],[11,"error_description","","In case of a parsing error returns its description.",1,null],[11,"is_upgrade","","Checks if an upgrade protocol (e.g. WebSocket) was requested.",1,null],[11,"is_final_chunk","","Checks if it was the final body chunk.",1,null],[11,"fmt","","",1,null]],"paths":[[8,"ParserHandler"],[3,"Parser"]]}; initSearch(searchIndex);