Skip to content

Instantly share code, notes, and snippets.

@wjlow
Created May 28, 2018 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjlow/d30347ffafeea39143889a507d539676 to your computer and use it in GitHub Desktop.
Save wjlow/d30347ffafeea39143889a507d539676 to your computer and use it in GitHub Desktop.
class HttpSink(http: HttpService) extends Sink[String] {
  def apply(requestBody: String): Async[Unit] = {
    http.put(requestBody).map(_ => ())
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment