extend/cowboy — Issue #94: cowboy_http_protocol:request
Author: oribrost
Created: 2011-12-04 15:40:00+00:00
State: open

This function handles most of the cases where the client sends garbage. However, if the client sends garbage that looks like an HTTP response, erlang:decode_packet in parse_request will return an http_response tuple, which will lead to a function clause error when calling request().