Skip to main content

babashka.http-client

-

  • ->Authenticator

    Constructs a `java.net.Authenticator`. Options: * `:user` - the username * `:pass` - the password

  • ->CookieHandler

    Constructs a `java.net.CookieHandler` using `java.net.CookieManager`. Options: * `:store` - an optional `java....

  • ->Executor

    Constructs a `java.util.concurrent.Executor`. Options: * `:threads` - constructs a `ThreadPoolExecutor` with the...

  • ->ProxySelector

    Constructs a `java.net.ProxySelector`. Options: * `:host` - string * `:port` - long

  • ->SSLContext

    Constructs a `javax.net.ssl.SSLContext`. Options: * `:key-store` - a file, URI or URL or anything else that is com...

  • ->SSLParameters

    Constructs a `javax.net.ssl.SSLParameters`. Options: * `:ciphers` - a list of cipher suite names * `:protocol...

C

  • client

    Construct a custom client. To get the same behavior as the (implicit) default client, pass `default-client-opts`. Opt...

D

  • default-client-opts

    Options used to create the (implicit) default client.

  • delete

    Convenience wrapper for `request` with method `:delete`

G

  • get

    Convenience wrapper for `request` with method `:get`

H

  • head

    Convenience wrapper for `request` with method `:head`

P

  • patch

    Convenience wrapper for `request` with method `:patch`

  • post

    Convenience wrapper for `request` with method `:post`

  • put

    Convenience wrapper for `request` with method `:put`

R

  • request

    Perform request. Returns map with at least `:body`, `:status` Options: * `:uri` - the uri to request (required). ...