Arbiter

Server-side content type negotiation module for Lua HTTP applications

local arbiter = require 'arbiter'

local negotiator = arbiter.new 'text/html;q=0.8, text/*;q=0.7, text/plain'

negotiator:pick("text/html", "text/plain") -- text/plain
generated by LDoc 1.4.6 Last updated 2022-12-18 14:23:12