erlang-github icon indicating copy to clipboard operation
erlang-github copied to clipboard

Avoid needing to call jsx:decode/1 more than once per request.

Open HernanRivasAcosta opened this issue 8 years ago • 0 comments

egithub_webhook:request() should be opaque and have this spec: #{headers => map(), body => map() | binary()}.

Use a function to get the body which always returns a map and if the body in the request is a binary, parses it and returns the new request. Similar to what cowboy does.

HernanRivasAcosta avatar Sep 13 '16 13:09 HernanRivasAcosta