Luvit 2.5.6 Documentation


HTTP Codec#

A simple pair of functions for converting between hex and raw strings.
local httpCodec = require('http-codec')

httpCodec.encoder()#

Returns a function. See the source at http.lua:ServerResponse for an example.

httpCodec.decoder()#

Returns a function which takes one argument. See the source at http.lua for an example.