Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidAsync
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 333
    • Issues 333
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Koushik Dutta
  • AndroidAsync
  • Merge requests
  • !130

sendStream() in AsyncHttpServerResponse has control of stream data

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/erkasraim/master into master Apr 07, 2014
  • Overview 4
  • Commits 2
  • Pipelines 0
  • Changes 5

Created by: erkasraim

In my case, I want to use sendSream()

  1. Encrypt File read
  2. Decrypt byte
  3. Send byte

My Issue is second phase.

Solve,

  1. Add DataInterceptCallback class
  2. Add sendStream(InputStream inputStream, long totalLength, DataInterceptCallback dataInterceptCallback) method in AsyncHttpServerResponse class
  3. Add pump(final InputStream is, final long max, final DataSink ds, final CompletedCallback callback, final DataInterceptCallback dataInterceptCallback) method in Util class
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/erkasraim/master