class Marten::Server::Handlers::HostVerification

Overview

Enforces the verification of the HTTP request host.

This handlers simply tries to access the request's host in order to ensure that it matches the list of allowed hosts. This verification is necessary in order to mitigate HTTP Host header attacks.

Included Modules

Defined in:

marten/server/handlers/host_verification.cr

Instance Method Summary

Instance Method Detail

def call(context : ::HTTP::Server::Context) #

[View source]