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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.4
    • 5.0.5
    • tapestry-core
    • 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.patch
          5 kB
          Ben Sommerville
        2. TAP-1409_2.patch
          5 kB
          Ben Sommerville

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              bpsommerville Ben Sommerville
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: