-
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.
feat(client): allow binary returns (#105)
- Loading branch information
1 parent
6c4adaf
commit 1c77051
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
lithic-kotlin-core/src/main/kotlin/com/lithic/api/core/http/BinaryResponseContent.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.lithic.api.core.http | ||
|
||
import java.io.Closeable | ||
import java.io.IOException | ||
import java.io.InputStream | ||
import java.io.OutputStream | ||
|
||
interface BinaryResponseContent : Closeable { | ||
|
||
fun contentType(): String? | ||
|
||
fun body(): InputStream | ||
|
||
@Throws(IOException::class) fun writeTo(outputStream: OutputStream) | ||
} |
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