object HttpRequest
- Source
- HttpMessage.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HttpRequest
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def apply(method: HttpMethod = HttpMethods.GET, uri: Uri = Uri./, headers: Seq[HttpHeader] = Nil, entity: RequestEntity = HttpEntity.Empty, protocol: HttpProtocol = HttpProtocols.`HTTP/1.1`): HttpRequest
- 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. - def unapply(any: HttpRequest): OptHttpRequest
- 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.