request_scope library

request_scope — Flutter DevTools Extension for inspecting HTTP traffic.

This library exposes the data model, events and inspector used by adapter packages (e.g. request_scope_dio) and by the DevTools extension UI.

The package is transport agnostic: it does not depend on any HTTP client.

Classes

BufferClearedEvent
Emitted when the inspector buffer is cleared by the user.
ErrorData
Snapshot of a failed HTTP exchange.
ExchangeBuffer
Fixed-size FIFO buffer for HttpExchange values.
HttpExchange
Aggregated request/response pair, identified by a stable id.
RequestData
Snapshot of an outbound HTTP request.
RequestFailedEvent
Emitted when a request fails.
RequestScopeConfig
Configuration for RequestScopeInspector.
RequestScopeEvent
Event broadcast between the inspector and the DevTools extension.
RequestScopeEventKind
Discriminator value for RequestScopeEvent.kind.
RequestScopeInspector
Inspector that captures HTTP exchanges and forwards them to the request_scope DevTools extension.
RequestScopeServiceKeys
Constants describing the wire protocol used between the app and the DevTools extension.
RequestStartedEvent
Emitted when a new HTTP request starts.
ResponseData
Snapshot of an inbound HTTP response.
ResponseReceivedEvent
Emitted when a response is received.
SnapshotEvent
Emitted when the extension requests a full snapshot.

Enums

ExchangeStatus
Lifecycle status of an HttpExchange.
HttpMethod
HTTP methods supported by request_scope.