networking 0.0.6 copy "networking: ^0.0.6" to clipboard
networking: ^0.0.6 copied to clipboard

outdated

A general purpose HTTP Client for Dart, that is typed and error free.

example/lib/example.dart

import 'dart:io';

import 'package:networking/networking.dart';

void main() async {
  final repository = NetworkingGitHubRepository(
    user: 'dart-pacotes',
    repoId: 'networking',
    branch: 'master',
  );

  // Create networking client that interacts with GitHub Raw API
  final networkingClient = RawGitHubNetworkingClient(
    repository: repository,
  );

  final endpoint = 'README.md';

  // Get README.md content
  final getEndpointResult = await networkingClient.get(endpoint: endpoint);

  // Tadaaaam!
  print(getEndpointResult);

  exit(0);
}
2
likes
0
points
31
downloads

Publisher

verified publisheroshanu.art

Weekly Downloads

A general purpose HTTP Client for Dart, that is typed and error free.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, http, meta

More

Packages that depend on networking