package Ġch . r my . android . http _ shortcuts . http Ċ Ċ import Ġch . r my . android . http _ shortcuts . http . Request Util . get MediaType Ċ import Ġokhttp 3 . MediaType Ċ import Ġokhttp 3 . RequestBody Ċ import Ġok io . Buffered Sink Ċ import Ġok io . Ok io Ċ import Ġjava . io . InputStream Ċ Ċ class ĠStream RequestBody ( private Ġval ĠcontentType : ĠString ?, Ġprivate Ġval Ġstream : ĠInputStream ) Ġ: ĠRequest Body () Ġ{ ĊĠĠĠ Ġoverride Ġfun ĠcontentType (): ĠMediaType ? Ġ= ĊĠĠĠĠĠĠĠ Ġget MediaType ( contentType ) ĊĊĠĠĠ Ġoverride Ġfun ĠwriteTo ( sink : ĠBuffered Sink ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsink . write All ( Ok io . source ( stream )) ĊĠĠĠ Ġ} Ċ Ċ }