Skip to content

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

@HernanRivasAcosta

Description

@HernanRivasAcosta

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions