object HttpRequest

Source
HttpMessage.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpRequest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply(method: HttpMethod = HttpMethods.GET, uri: Uri = Uri./, headers: Seq[HttpHeader] = Nil, entity: RequestEntity = HttpEntity.Empty, protocol: HttpProtocol = HttpProtocols.`HTTP/1.1`): HttpRequest
  2. def effectiveUri(uri: Uri, headers: Seq[HttpHeader], securedConnection: Boolean, defaultHostHeader: Host): Uri

    Determines the effective request URI according to the logic defined at http://tools.ietf.org/html/rfc7230#section-5.5

    Determines the effective request URI according to the logic defined at http://tools.ietf.org/html/rfc7230#section-5.5

    Throws an IllegalUriException if the URI is relative and the headers don't include a valid akka.http.scaladsl.model.headers.Host header or if URI authority and akka.http.scaladsl.model.headers.Host header don't match.

  3. def unapply(any: HttpRequest): OptHttpRequest
  4. def verifyUri(uri: Uri): Unit

    Verifies that the given Uri is non-empty and has either scheme http, https, ws, wss or no scheme at all.

    Verifies that the given Uri is non-empty and has either scheme http, https, ws, wss or no scheme at all. If any of these conditions is not met the method throws an IllegalUriException.