Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1409

Extend StreamResponse to support setting headers in the Response prior to streaming the contents from the InputStream

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Currently responses rendered using StreamResponse will display within the browser (depending on content type).
      Sometimes the application would like to be able to save the response as a file instead of displaying in the browser.

      This can be implemented by setting the "content-disposition" header in the response.

        Attachments

        1. TAP-1409_2.patch
          5 kB
          Ben Sommerville
        2. TAP-1409.patch
          5 kB
          Ben Sommerville

          Issue Links

            Activity

              People

              • Assignee:
                hlship Howard M. Lewis Ship
                Reporter:
                bpsommerville Ben Sommerville
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: