Skip to content
pubscout

http_profile

0.1.0, released 2 years ago by tools.dart.dev

Allows custom HTTP client authors to integrate requests with the DevTools Network View.

Quiet but busy
$ flutter pub add http_profile
Source repository

What it does

Provides an interface for custom HTTP clients implemented outside the Dart SDK to send profiling data to the Flutter DevTools Network View. Client authors populate request and response properties on a profile object when profiling is enabled. This surfaces network activity, headers, and connection details in standard Dart debugging tools.

AI-written summary of version 0.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are implementing an HTTP client package or adapter and want DevTools Network View integration
  • You need to expose custom networking protocol metadata and timings to Flutter DevTools

Skip it when

  • You are an end user consuming existing HTTP clients (like http or dio)
  • You want a ready-to-use HTTP client for making API requests

Strengths

  • Enables seamless integration with Flutter DevTools Network View for custom clients
  • Lightweight package with zero external dependencies
  • Maintained under the official dart-lang repository ecosystem

Weaknesses

  • Targeted exclusively at client library implementers, not general app developers
  • Pre-1.0 experimental status with potential for breaking API changes

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

None beyond adding as a dependency in your HTTP client package.

import 'package:http_profile/http_profile.dart';

final profile = HttpClientRequestProfile.profile(
  requestStartTime: DateTime.now(),
  requestMethod: 'GET',
  requestUri: 'https://example.com',
);

profile?.connectionInfo = {
  'localPort': 1285,
  'remotePort': 443,
};

profile?.responseData.headersListValues = {
  'content-type': ['application/json; charset=utf-8'],
};

Alternatives

Packages that do the same job and could replace http_profile.

  • peek

    In-app network inspector for Flutter to view and debug requests, responses, and failures.

  • thunder

    Flutter debug overlay for real-time inspection of HTTP requests and WebSockets.

  • api_studio

    In-app network inspector for Dio, http, and custom requests with redaction, edit & replay, and exports.

  • flutter_alice

    HTTP inspector tool to capture, store, and view requests and responses.

Works with

Packages commonly used together with http_profile: ones it builds on, ones built on it, and its own family.