forked from clj-commons/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http/file API to send region of the file (clj-commons#485)
* Define public API http/file and internal representation * Reimplement sender side to use internal coercion * Do not use internal Netty constant * Fix typo * Set correct value for content-length header * Remove unused imports * Avoid reflection when creating random access file * Test cases to cover file regions * More implementation to core.clj to reuse when coercing message * bs converter for HttpFile * Mark failed option when running ssl? tests * Fix issue with offset & size calculation when converting HttpFile to seq of ByteBuffers * Convenient print representation for aleph.http.core.HttpFile object * Rename new-http-file -> http-file * Avoid reflection warnings for print method
- Loading branch information
Showing
3 changed files
with
178 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters