Http

wvlet.airframe.http.Http$
object Http

An entry point to access airframe-http functionalities

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Http.type

Members list

Concise view

Type members

Classlikes

abstract class Context extends HttpContext[Request, Response, Future]

Attributes

Graph
Supertypes
trait HttpContext[Request, Response, Future]
class Object
trait Matchable
class Any
abstract class Filter extends HttpFilter[Request, Response, Future]

Attributes

Graph
Supertypes
trait HttpFilter[Request, Response, Future]
class Object
trait Matchable
class Any

Value members

Concrete methods

def DELETE(uri: String): Request
def GET(uri: String): Request
def PATCH(uri: String): Request
def POST(uri: String): Request
def PUT(uri: String): Request

An entry point for building a new HttpClient

An entry point for building a new HttpClient

Attributes

def redirectException(locationUrl: String, status: HttpStatus): HttpServerException

Create an exception to redirect (status code = 302) the request to the target locationUrl

Create an exception to redirect (status code = 302) the request to the target locationUrl

Attributes

def request(method: String, uri: String): Request

Create a new request

Create a new request

Attributes

def request(uri: String): Request

Create a new request

Create a new request

Attributes

def response(status: HttpStatus, content: String): Response

Create a new server exception that can be used to exit the Endpoint or RPC process.

Create a new server exception that can be used to exit the Endpoint or RPC process.

Attributes

Create a new server exception that can be used to exit the Endpoint or RPC process. The content type will be the same with the Accept type

Create a new server exception that can be used to exit the Endpoint or RPC process. The content type will be the same with the Accept type

Attributes

def serverException(status: HttpStatus, cause: Throwable): HttpServerException

Create a new server exception with an explicit cause

Create a new server exception with an explicit cause

Attributes