customRequest

fun customRequest(builderFn: UnaryOperator<HttpBuilder>): Mono<Response>

Send a custom request to the lavalink node. Any host and port you set will be replaced with the node host automatically. The scheme must match your node's scheme, however.

It is recommended to use the path setter instead of the url setter when defining a url, like this:

{@code
customRequest((builder) -> {
    return builder.path("/some/plugin/path")
                  .get();
}).subscribe(System.out::println);
}

Return

The Http response from the node, may error with an IllegalStateException when the node is not available.

Parameters

builderFn

The request builder function, defaults such as the Authorization header have already been applied