Sample code for 30+ languages & platforms
Dart

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Dart Downloads

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  final http = CkHttp();
  final url = 'https://example.com/folder/page?lang=en&sort=asc#section2';
  print(http.getUrlPath(url));

  // Output:

  // /folder/page
}