Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6974579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:15:21+00:00 2026-05-27T17:15:21+00:00

I have a situation where I need multiple renders to occur with the same

  • 0

I have a situation where I need multiple renders to occur with the same response object in an ExpressJS application. (Basically one HTTP request triggers multiple back-end requests, all of which can begin rendering results to the page immediately as they complete.) The problem is that I need each one to render a view (i.e. I don’t think I can use res.write()), and as far as I can tell, there is no way for res.render() to not end the response or write headers each time it is called.

What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:15:22+00:00Added an answer on May 27, 2026 at 5:15 pm

    Express compiles the template using an engine like EJS, Jade etc.

    The data is then rendered using response.send: https://github.com/visionmedia/express/blob/master/lib/response.js#L76-131

    As you can see there, at the end there is this.end..., which means response.end(…).

    If you want do achieve sending multiple views, you must compile those views yourself using the view engine and then create a function similar to response.send (which I gave you the link above), but be careful not to send the headers twice or call response.end before the last view is rendered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The situation is I have multiple webservices for which I need send request and
I have a situation where i need to debug a Windows CE application in
I have a situation where I need the Checker enum below used in multiple
I am in a situation where I need to run multiple times the same
I have a situation here where I need to distribute work over to multiple
I have a need for multiple peer processes (for redundancy), where only one should
I have a situation where I want to associate multiple values from one table
Here is my situation. I have a server application designed for multiple users to
We have a setup where we have multiple instances of an application - one
I have a situation where I need to match an objects to multiple tags

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.