Package

scalaj

http

Permalink

package http

Visibility
  1. Public
  2. All

Type Members

  1. class Base64 extends AnyRef

    Permalink
  2. class BaseHttp extends AnyRef

    Permalink

    Extends and override this class to setup your own defaults

  3. case class HttpRequest(url: String, method: String, connectFunc: HttpExec, params: Seq[(String, String)], headers: Seq[(String, String)], options: Seq[HttpOption], proxyConfig: Option[Proxy], charset: String, sendBufferSize: Int, urlBuilder: (HttpRequest) ⇒ String, compress: Boolean) extends Product with Serializable

    Permalink

    Immutable builder for creating an http request

    Immutable builder for creating an http request

    This is the workhorse of the scalaj-http library.

    You shouldn't need to construct this manually. Use scalaj.http.Http.apply to get an instance

    The params, headers and options methods are all additive. They will always add things to the request. If you want to replace those things completely, you can do something like

    .copy(params=newparams)
  4. case class HttpResponse[T](body: T, code: Int, headers: Map[String, IndexedSeq[String]]) extends Product with Serializable

    Permalink

    Result of executing a scalaj.http.HttpRequest

    Result of executing a scalaj.http.HttpRequest

    T

    the body response since it can be parsed directly to things other than String

    body

    the Http response body

    code

    the http response code from the status line

    headers

    the response headers

  5. case class MultiPart(name: String, filename: String, mime: String, data: InputStream, numBytes: Long, writeCallBack: (Long) ⇒ Unit) extends Product with Serializable

    Permalink
  6. case class Token(key: String, secret: String) extends Product with Serializable

    Permalink

Value Members

  1. object Http extends BaseHttp

    Permalink

    Default entry point to this library

  2. object HttpConstants

    Permalink

    Mostly helper methods

  3. object HttpOptions

    Permalink

    Helper functions for modifying the underlying HttpURLConnection

  4. object MultiPart extends Serializable

    Permalink
  5. object OAuth

    Permalink

    utility methods used by scalaj.http.HttpRequest

Ungrouped