Sha256: bfc08efe1f05d65cb126a3cd71a003308e02668b69d24ed80188330173bb494f
Contents?: true
Size: 550 Bytes
Versions: 21
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true require 'htmlentities' require 'webrick' require_relative '../../intranet/core/haml_wrapper' module CoreExtensions # @!visibility protected module WEBrick # @!visibility protected # Extension of +WEBrick::HTTPResponse+ to provide the hook # +create_error_page+. module HTTPResponse include Intranet::Core::HamlWrapper # Provides custom error pages for common HTTP errors. def create_error_page @body << to_markup('http_error', error: @status) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems