Package | Description |
---|---|
ratpack.http |
The HTTP protocol.
|
ratpack.server |
Objects used to start a ratpack application.
|
Modifier and Type | Method and Description |
---|---|
static HttpUrlBuilder |
HttpUrlBuilder.base(URI uri)
Create a new builder, with the initial state of the given URI.
|
HttpUrlBuilder |
HttpUrlBuilder.encodedPath(String path)
Appends the path to the URL, without escaping any meta characters.
|
HttpUrlBuilder |
HttpUrlBuilder.host(String host)
Sets the host to the given value.
|
static HttpUrlBuilder |
HttpUrlBuilder.http()
Create a new HTTP URL builder.
|
static HttpUrlBuilder |
HttpUrlBuilder.https()
Create a new HTTPS URL builder.
|
default HttpUrlBuilder |
HttpUrlBuilder.maybeEncodedPath(String path)
Appends the path to the URL, without escaping any meta characters, unless it is empty or
null . |
default HttpUrlBuilder |
HttpUrlBuilder.maybePath(String path)
Appends the path to the URL, unless it is empty or
null . |
default HttpUrlBuilder |
HttpUrlBuilder.params(Action<? super ImmutableMultimap.Builder<String,Object>> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(Map<String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(Multimap<String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(MultiValueMap<String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(String... params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.path(String path)
Appends the path to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.port(int port)
Sets the port to the given value.
|
HttpUrlBuilder |
HttpUrlBuilder.secure()
Sets the protocol to be HTTPS.
|
HttpUrlBuilder |
HttpUrlBuilder.segment(String pathSegment,
Object... args)
Appends one path segment to the URL.
|
Modifier and Type | Method and Description |
---|---|
default HttpUrlBuilder |
PublicAddress.builder()
Creates a URL builder using the public address as the base.
|
default HttpUrlBuilder |
PublicAddress.builder(Context ctx)
Deprecated.
since 1.2, use
PublicAddress.builder() |
Modifier and Type | Method and Description |
---|---|
default URI |
PublicAddress.get(Action<? super HttpUrlBuilder> action)
Creates a URL by building a URL based on the public address.
|
default URI |
PublicAddress.get(Context ctx,
Action<? super HttpUrlBuilder> action)
Deprecated.
since 1.2, use
PublicAddress.get(Action) |