path method

FliqRequest path(
  1. String pathSegment
)

Appends a path segment to the request's URL.

Example:

final response = await client.get('https://example.com').path('/api').go();

Implementation

FliqRequest path(String pathSegment) {
  var newUri = Uri.parse('${_request.uri}$pathSegment');
  _client.openUrl(_request.method, newUri).then((request) {
    _request = request;
  });
  return this;
}