Packages
🐑 a fluffy Gleam web server
Security advisory:
This version has known vulnerabilities.
View advisories
Current section
Files
Jump to
Current section
Files
src/ewe_ffi.erl
-module(ewe_ffi).
-export([decode_packet/3]).
decode_packet(Type, Packet, Options) ->
case erlang:decode_packet(Type, Packet, Options) of
{ok, HttpPacket, Rest} ->
{ok, {packet, HttpPacket, Rest}};
{more, undefined} ->
{ok, {more, none}};
{more, Length} ->
{ok, {more, {some, Length}}};
{error, Reason} ->
{error, Reason}
end.