url method

String url(
  1. String uri
)

Generates the complete request URL by combining the base URI and method-specific URI.

Implementation

String url(String uri) {
  if (uri.endsWith("/")) return "$uri${method.uri}";
  return "$uri/${method.uri}";
}