FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
emarref
emarrefHttpMiddlewareChain
Public
Like
HttpMiddlewareChain
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/14/2024
Viewing readonly version of main branch: v4
View latest version
README.md

An implementation of chainable http middleware.

Wrap your http handlers in middleware to add functionality and reduce code duplication.

Create val
export default function chain() .then(add(requireHttpMethod("post"))) .then(add(requireAuthentication())) .then(send())

Migrated from folder: http/middleware/HttpMiddlewareChain

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesCLIAI agentsCode intelligenceSlack integrationsGTMPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.