class HttpResponse[T] extends AnyRef
An HTTP response.
The usual HTTP response attributes are available:
- io.vertx.scala.ext.web.client.HttpResponse#statusCode the HTTP status code
- io.vertx.scala.ext.web.client.HttpResponse#statusMessage the HTTP status message
- io.vertx.scala.ext.web.client.HttpResponse#headers the HTTP headers
- io.vertx.scala.ext.web.client.HttpResponse#version the HTTP version
The body of the response is returned by io.vertx.scala.ext.web.client.HttpResponse#body decoded as the format specified by the io.vertx.scala.ext.web.codec.BodyCodec that built the response.
Keep in mind that using this HttpResponse impose to fully buffer the response body and should be used for payload
that can fit in memory.
- Alphabetic
- By Inheritance
- HttpResponse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new HttpResponse(_asJava: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T])
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
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
-  def asJava: AnyRef
- 
      
      
      
        
      
    
      
        
        def
      
      
        body(): Option[T]
      
      
      - returns
- the response body in the format it was decoded. 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsBuffer(): Option[Buffer]
      
      
      - returns
- the response body decoded as a Buffer, or - nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsJson[R](type: Class[R])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[R]): Option[R]
      
      
      - returns
- the response body decoded as the specified - typewith the Jackson mapper, or- nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsJsonArray(): Option[JsonArray]
      
      
      - returns
- the response body decoded as a JsonArray, or - nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsJsonObject(): Option[JsonObject]
      
      
      - returns
- the response body decoded as JsonObject, or - nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsString(encoding: String): Option[String]
      
      
      - returns
- the response body decoded as a - Stringgiven a specific- encoding, or- nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        bodyAsString(): Option[String]
      
      
      - returns
- the response body decoded as a - String, or- nullif a codec other than BodyCodec#buffer() was used
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        cookies(): Buffer[String]
      
      
      - returns
- the Set-Cookie headers (including trailers) 
 
- 
      
      
      
        
      
    
      
        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
      
      
        getHeader(headerName: String): Option[String]
      
      
      Return the first header value with the specified name * @param headerName the header name Return the first header value with the specified name * @param headerName the header name - returns
- the header value 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        getTrailer(trailerName: String): Option[String]
      
      
      Return the first trailer value with the specified name * @param trailerName the trailer name Return the first trailer value with the specified name * @param trailerName the trailer name - returns
- the trailer value 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        headers(): MultiMap
      
      
      - returns
- the headers 
 
- 
      
      
      
        
      
    
      
        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
      
      
        statusCode(): Int
      
      
      - returns
- the status code of the response 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        statusMessage(): String
      
      
      - returns
- the status message of the response 
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        trailers(): MultiMap
      
      
      - returns
- the trailers 
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        version(): HttpVersion
      
      
      - returns
- the version of the response 
 
- 
      
      
      
        
      
    
      
        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( ... )