Giter VIP home page Giter VIP logo

Comments (3)

FrankLeymann avatar FrankLeymann commented on May 14, 2024

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.

samisawso2 avatar samisawso2 commented on May 14, 2024

@isudana can we resolve this?

from ballerina-lang.

pubudu91 avatar pubudu91 commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.