Comments (3)
Incoming messages are targeted to a resource. A resource corresponds to an API (here I use the notion that each function offered is an API; sometimes the collection of offered functions is referred to as an API - not sure which notion we use). And an API specifies which headers are supported, both, inbound and outbound (refer to Swagger). Thus, each resource specifies the inbound headers it understands and which headers will be set in the response.
We have data mapping functions that allow to access (incoming) headers and set headers. Both is selectively, i.e. the data map used to create the message send to a backend is in charge of setting the headers of the message.
In that sense, the headers must be available within the Balerina logic but should not be "made available to the backend" by default.
from ballerina-lang.
@isudana can we resolve this?
from ballerina-lang.
The current implementation adheres to the HTTP spec with regards to which headers to forward and which headers to remove. Hence closing this.
from ballerina-lang.
Related Issues (20)
- [BUG]: Config Generation fails to add the name of Readonly Records to the Config Schema HOT 3
- [New Feature]: Expose JSON path as a Ballerina library function
- [Improvement]: Extend Testerina `.withArgument` method to allow more data types
- [Bug]: A variable declared as an explicit readonly record does not include a reference type as one of its constituent types HOT 3
- [Bug]: Diagnostics reported in CompilerLifecycleEventContext are ignored
- [Bug]: Cannot define a `readonly` intersection with a type reference type for `readonly`
- [Bug]: Runtime NPE with elvis operator and filter() function HOT 1
- [Bug]: Formatter adds a space before colon when formatting a computed field key HOT 1
- [New Feature]: Design new configurations for ballerina observability (automatic instrumentation) HOT 1
- [Improvement]: Support for HTTP resources with trailing slashes HOT 3
- [Bug]: Description sections are not handled in API docs generation
- [Task]: Support multiple receive in worker message passing
- [Bug]: `CloneWithType` throws conversion error with union type
- [Bug]: Incorrect error message when using two or more open records spreads to create a record
- [Improvement]: Improve Ballerina transactions with XA Resource connection check/refresh before commit, rollback operations
- [Bug]: Tracing output is incorrect for error scenarios related to `http:Client`
- [Bug]: Invalid error and compiler crash when using a configurable variable to specify length of a top level const array
- [Improvement]: Fix delay in code completions during VSCode startup.
- [Bug]: Alternate receive worker message passing hangs for nil return
- [Improvement]: Reorder top level node list
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 ballerina-lang.