Project

General

Profile

Feature #5268

allow matching on the hostname like we do on the path

Added by Jan Klopper over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
-
Start date:
2017-08-17
Due date:
% Done:

0%

Estimated time:

Description

It would be usefull to allow matching by regex on the hostname just like we do matching on the path of a request.
The hostname regex could be added to the front of the route/handler tuple in the routes list.
It could then be given to the matching handler as a keyword argument containing a list of matches. where all regular path matches would be positional arguments like we do now.

Also available in: Atom PDF