happstack-static-routing: Support for static URL routing with overlap detection for Happstack.

[ bsd3, distributed-computing, library, web ] [ Propose Tags ] [ Report a vulnerability ]

If you have a large routing table in Happstack and want to insert a new handler, you might run into overlap problems (ambiguity). The new handler might not fire because it matches against a URL that is already handled earlier. Or if you put your new handler first, it might steal requests from existing handlers.

This Happstack support library allows you to detect overlap cases and build unambiguous routing tables where the order of the handlers is irrelevant.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.4.0, 0.4.2, 0.6.0.0, 0.7.0.0, 0.7.0.1
Change log CHANGELOG.md
Dependencies base (>=4.14 && <5), containers (>=0.6), happstack-server (>=7), list-tries (>=0.6) [details]
Tested with ghc ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1
License BSD-3-Clause
Author Scrive AB
Maintainer Andrzej Rybczak <andrzej@rybczak.net>,
Category Web, Distributed Computing
Home page https://github.com/scrive/happstack-static-routing
Source repo head: git clone git://github.com/scrive/happstack-static-routing.git
Uploaded by arybczak at 2024-09-16T11:57:20Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 7213 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-09-16 [all 1 reports]

Readme for happstack-static-routing-0.7.0.1

[back to package description]

happstack-static-routing Hackage version Build Status

If you have a large routing table in Happstack and want to insert a new handler, you might run into overlap problems (ambiguity). The new handler might not fire because it matches against a URL that is already handled earlier. Or if you put your new handler first, it might steal requests from existing handlers.

This Happstack support library allows you to detect overlap cases and build unambiguous routing tables where the order of the handlers is irrelevant.