class Marten::Server::Handlers::HostVerification


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:


Instance Method Summary

Instance Method Detail

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

[View source]