Comments (1)
This was a bit tricky since the request needed to do some bookkeeping around the filter call, added a new func TestWithRequest(request _http.Request, filter RequestFilter) (_Request, *http.Response).
I hope this is enough to enable testing since the lifecycle stuff would be messy to expose and exposing the internal newRequest would return a mostly broken object.
from falcore.
Related Issues (20)
- Clean up Router API, document, and provide examples HOT 11
- Graceful shutdown and client keep-alive HOT 3
- Do you have an example for adding a cookie to the response? HOT 2
- SimpleResponse and other response helpers HOT 3
- attach falcore to a running http server HOT 2
- Failing file_filter_test.go HOT 3
- Intermittent failure of static_file/file_filter_test.go: TestBasicFiles HOT 4
- Refactoring for benchmarks and testing. HOT 9
- Keep-Alive causing long delays HOT 16
- Nested pipelines report invalid times HOT 1
- Still maintained? HOT 3
- Upstream deadline does not work correctly HOT 2
- Falcore doesn't support Expect: 100-continue requests HOT 7
- Keep-Alive is not working HOT 8
- Responders in subpackage HOT 3
- hot restart usage? HOT 11
- basic_file_server example compilation fails HOT 2
- Extracting parameters from request HOT 4
- Can this be used along with the Gorilla toolkit? HOT 3
- url blog
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 falcore.