Sha256: 87266dd416622810d8c69b4ed007dcb2968696a0fa2dad8019b6b29f8cd2e406
Contents?: true
Size: 242 Bytes
Versions: 17
Compression:
Stored size: 242 Bytes
Contents
# frozen_string_literal: true class ContentTypeServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(req, res) ct = req.query['ct'] || "text/html; charset=utf-8" res['Content-Type'] = ct res.body = "Hello World" end end
Version data entries
17 entries across 17 versions & 1 rubygems