Comments (3)
I like the backward compatible syntax.
Actually, I would use an enum instead of a boolean:
- replace: write only if already exists
- complete: write only if not yet present
- default: write it in any case
Please also take care that staticHeaders stuff is also present in hooks.
from gateleen.
Actually, there is a problem with the union-like typing (either string or object). It prevents to generate code mapping for typed language (e.g. jackson in Java).
It would be better to have another object instead of "staticHeaders".
We could use "headers", since there is a possibility to have more features in the future that will be maybe more dynamic.
from gateleen.
We have an additional enhancement proposal concerning "staticHeaders": use variables to enable dynamic header values. Example:
"headers": {
"x-queue": { "value": "my-queue-for-{x-deviceid}", condition: "..." }
}
The syntax {x-deviceid} will be replaced by dynamically from the (assume to exist) value of header x-deviceid.
It would be very fancy if we could also reference query parameters and URL parts as dynamic values.
And not to forget: We have those "staticHeaders" (or new just "headers") no only in static routing (https://github.com/swisspush/gateleen/blob/develop/gateleen-routing/README_routing.md) but also with Hooks (https://github.com/swisspush/gateleen/blob/develop/gateleen-hook/README_hook.md).
We should do it in both modules the same way
Do we need to pay attention for cyclic references?
"aaa": {value: "{bbb}"},
"bbb": {value: "{aaa}"}
from gateleen.
Related Issues (20)
- Reduce DeltaHandler logs for not found collections HOT 1
- Killswitch for delta requests using limit and offset request parameters HOT 1
- Invalid JSON reported in Routing-Rule editor for property replacement variables HOT 13
- Gateleen Unexpectedly Closes Ongoing Streams HOT 4
- Preserve host header and allow route specific configuration HOT 3
- New module: gateleen-cache HOT 2
- Extend gateleen-validation with schemaLocation HOT 1
- Update Log4j HOT 3
- WorkInProgress collection of potential improvements HOT 1
- Add DELTA_ON_BACKEND to RuleFeatures HOT 1
- multi instance: AppInfoParser InstanceAlreadyExistsException
- DuplicateCheckHandler handleStorage not correct
- Forward original payload to delegated destination HOT 4
- Provide request timeout route hook configuration
- gateleen-kafka: log RecordMetadata when sending messages HOT 1
- IllegalStateException: You must set the Content-Length header to be the total size of the message body BEFORE sending any data if you are not using HTTP chunked encoding
- Dependabot Reports Bunch Of Issues
- 400 Bad Request when headersFilter in Rule used but no header is matching HOT 1
- Use RedisAPI through a provider HOT 1
- Hooks on forwarded requests
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 gateleen.