The Skinny's HTTP Client Wrapper on CLI.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src/main
.gitignore
LICENSE
README.md
build.sbt

README.md

HTTP Client State

The Skinny's HTTP Client Wrapper on CLI.

HTTP Client Wrapper based.

State Monad version http client wrapper tools.

Usage

sbt console
run(get("myfleet.moe"))._2 // get simple
run(get("google.com", "q" -> "myfleet"))._2 // with args
run(post("hoge.com/session", "username" -> "ponkotuy", "password" -> "*****"))._2 // post form
run(for {
  _ <- post("hoge.com/session", ("username" -> "ponkotuy") ~ ("password" -> "*****")) // post json by using json4s
  r <- get("hoge.com/image/1") // get with cookies
} yield r.status)._2
run(get("myfleet.moe"))._2 // get raw Response
run(for {
  _ <- get("ponkotuy.com")
  r <- get("/index.html") // use host settings
} yield r)._2
run(get("https://google.com", "q" -> "myfleet")._2 // https protocol

You can use get, post, head, put, delete, options and trace.