npg/npg_http library

Classes

NpgHttpResponse
The response of an HTTP call made by the plugin, reduced to what the NPG orders API needs.

Constants

npgHttpTimeout → const Duration
How long the plugin waits for the orders API before giving up and keeping the original "outcome unknown" result.

Functions

npgDefaultHttpGet(Uri url, Map<String, String> headers) Future<NpgHttpResponse>
Default NpgHttpGet: a plain dart:io GET, so the package stays dependency-free.

Typedefs

NpgHttpGet = Future<NpgHttpResponse> Function(Uri url, Map<String, String> headers)
Signature of the GET used to call the NPG orders API.