GithubHelp home page GithubHelp logo

Use with node-http-proxy about tailor HOT 4 CLOSED

zalando avatar zalando commented on May 17, 2024
Use with node-http-proxy

from tailor.

Comments (4)

rikkert avatar rikkert commented on May 17, 2024 1

You are doing this in the fetchTemplate right?

from tailor.

srcnix avatar srcnix commented on May 17, 2024

@rikkert, currently, yes. However, I'm receiving an error stating that headers can no longer be modified as they have already been sent - which I am assuming node-http-proxy has done.

I'm wondering if it's possible to apply Tailor to just before node-http-proxy streams the response.

from tailor.

vigneshshanmugam avatar vigneshshanmugam commented on May 17, 2024

@srcnix Sorry for the delay...was in vacation. Can you point me to an example repo or gist? I will play with it and let you know.

from tailor.

srcnix avatar srcnix commented on May 17, 2024

@vigneshshanmugam, I actually managed to get this working. node-http-proxy ends a response itself, so I had to override the response on 'end' event.

from tailor.

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.