Comments (3)
in /vlib/x/vweb/vweb.v
// first execute before_request
$if A is HasBeforeRequest {
app.before_request()
}
// user_context.before_request()
if user_context.Context.done {
return
}
it should run ctx.before_request() before any other middleware.
from v.
Yes, but need to wait for #20762 to be fixed before a proper solution can be implemented 👍
from v.
Meanwhile: I created a middleware check_auth
and I have to use it in every handler
if check_auth { // some code } else { ctx.request_error("Auth failed") }
from v.
Related Issues (20)
- `-use-coroutines` fails if wget isn't installed HOT 16
- Test web front-end examples
- C error when running a function that returns a reference in a thread
- Compilation error when using omitempty with params struct
- Generic function fails to be created on second use of generic function HOT 1
- Generics use incorrect type/path when more than one generic function exists for embedded structs
- Coroutines fail to build HOT 18
- net: net.listen_tcp fail in -prod mode HOT 8
- x.vweb: add gzip compression support for static files
- Compile time generation not working for maps in structs HOT 1
- incorrect values in interface reflection HOT 1
- x.vweb: gzip middleware can't be used if os is imported HOT 2
- ORM: `update table set field=field+1` is broken HOT 1
- watch: excessive memory usage [6gb...] HOT 2
- error library 'atomic' not found HOT 1
- compile error: value `100000000000` overflows `u32` HOT 3
- C. type unknown HOT 1
- Compiler Bug raised when trying to compile my code HOT 4
- [x.json2] Add skippable struct fields @[json: '-'] HOT 1
- Confusing error message when using `is` with a constant rvalue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v.