devpul library

Streams HTTP calls, errors and custom events from a debug build to the DevPul browser UI over the Dart VM service.

Classes

Devpul
DevpulConfig
DevpulForm
A multipart body. Adapters convert their client's form type into this.
DevpulHttp
Shared by HTTP adapters: ids, pairing, ignore rules, redaction, curl and console output.
DevpulHttpCall

Enums

ConsoleMode

Constants

truncatedKey → const String

Functions

curl(String method, Uri url, Map<String, Object?> headers, Object? body) → String
A single-line curl command. Single quotes, embedded ' written as '\''.
normalizeBody(Object? body) → Object?
Forms become maps, JSON strings are decoded, bytes are summarised.
normalizeHeaders(Map<String, Object?> headers) → Map<String, Object?>
Single values become strings, repeated ones stay lists.
shellQuote(String value) → String
toJsonSafe(Object? value) → Object?
Converts value into something jsonEncode accepts. Unknown objects become their toString().

Typedefs

BodyRedactor = Object? Function(Uri url, Object? body)
HeaderRedactor = Map<String, Object?> Function(Uri url, Map<String, Object?> headers)