object HttpConstants
Mostly helper methods
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpConstants
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type HttpExec = (HttpRequest, HttpURLConnection) ⇒ Unit
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val CharsetRegex: Regex
- def appendQs(url: String, params: Seq[(String, String)], charset: String): String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def base64(in: String): String
- def base64(bytes: Array[Byte]): String
- def basicAuthValue(user: String, password: String): String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def defaultOptions: Seq[HttpOption]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def proxy(host: String, port: Int, proxyType: Type = Proxy.Type.HTTP): Proxy
-
def
readBytes(in: InputStream): Array[Byte]
[lifted from lift] Read all data from a stream into an Array[Byte]
- def readParamMap(in: InputStream, charset: String = utf8): Map[String, String]
- def readParams(in: InputStream, charset: String = utf8): Seq[(String, String)]
-
def
readString(is: InputStream, charset: String): String
[lifted from lift]
- def readString(is: InputStream): String
- def readToken(in: InputStream): Token
- val setFixedLengthStreamingMode: (HttpURLConnection, Long) ⇒ Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toQs(params: Seq[(String, String)], charset: String): String
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def urlDecode(name: String, charset: String): String
- def urlEncode(name: String, charset: String): String
- val utf8: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Simple http request library. Makes it easy to issue an http request and get a result.
Overview
The main entry point is the scalaj.http.Http singleton. Calling Http(url) will return an instance of scalaj.http.HttpRequest which you can use to build up your request. Execute the request by calling one of the asXXX methods and get a scalaj.http.HttpResponse which will contain the responseCode, body and response headers.
Usage Example