Class HttpRequest$
java.lang.Object
org.apache.pekko.http.scaladsl.model.HttpRequest$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpRequest$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(HttpMethod method, Uri uri, scala.collection.immutable.Seq<HttpHeader> headers, RequestEntity entity, HttpProtocol protocol) 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.5unapply(HttpRequest any) voidVerifies that the givenUriis non-empty and has either schemehttp,https,ws,wssor no scheme at all.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
HttpRequest$
public HttpRequest$()
-
-
Method Details
-
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
IllegalUriExceptionif the URI is relative and theheadersdon't include a validpekko.http.scaladsl.model.headers.Hostheader or if URI authority andpekko.http.scaladsl.model.headers.Hostheader don't match.- Parameters:
uri- (undocumented)headers- (undocumented)securedConnection- (undocumented)defaultHostHeader- (undocumented)- Returns:
- (undocumented)
-
verifyUri
Verifies that the givenUriis non-empty and has either schemehttp,https,ws,wssor 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
-