# File lib/cuba.rb, line 261 def accept(mimetype) lambda do String(env["HTTP_ACCEPT"]).split(",").any? { |s| s.strip == mimetype } and res["Content-Type"] = mimetype end end