Package akka.http.scaladsl.model
Class HttpRequest$
- java.lang.Object
-
- akka.http.scaladsl.model.HttpRequest$
-
public class HttpRequest$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static HttpRequest$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description HttpRequest$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
apply(HttpMethod method, Uri uri, scala.collection.immutable.Seq<HttpHeader> headers, RequestEntity entity, HttpProtocol protocol)
Uri
effectiveUri(Uri uri, scala.collection.immutable.Seq<HttpHeader> headers, boolean securedConnection, Host defaultHostHeader)
Determines the effective request URI according to the logic defined at http://tools.ietf.org/html/rfc7230#section-5.5OptHttpRequest
unapply(HttpRequest any)
void
verifyUri(Uri uri)
Verifies that the givenUri
is non-empty and has either schemehttp
,https
,ws
,wss
or no scheme at all.
-
-
-
Field Detail
-
MODULE$
public static final HttpRequest$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
effectiveUri
public Uri effectiveUri(Uri uri, scala.collection.immutable.Seq<HttpHeader> headers, boolean securedConnection, Host defaultHostHeader)
Determines the effective request URI according to the logic defined at http://tools.ietf.org/html/rfc7230#section-5.5Throws an
IllegalUriException
if the URI is relative and theheaders
don't include a validHost
header or if URI authority andHost
header don't match.- Parameters:
uri
- (undocumented)headers
- (undocumented)securedConnection
- (undocumented)defaultHostHeader
- (undocumented)- Returns:
- (undocumented)
-
verifyUri
public void verifyUri(Uri uri)
Verifies that the givenUri
is non-empty and has either schemehttp
,https
,ws
,wss
or no scheme at all. If any of these conditions is not met the method throws anIllegalUriException
.- Parameters:
uri
- (undocumented)
-
apply
public HttpRequest apply(HttpMethod method, Uri uri, scala.collection.immutable.Seq<HttpHeader> headers, RequestEntity entity, HttpProtocol protocol)
-
unapply
public OptHttpRequest unapply(HttpRequest any)
-
-