File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 5.0.2] - 2021-05-12
8
+ ### Fixed
9
+ - PersistentHandler to implement HttpHandler
10
+
7
11
## [ 5.0.1] - 2021-05-11
8
12
### Fixed
9
13
- Missing http client exports
@@ -192,6 +196,7 @@ the Document model.
192
196
### Added
193
197
- Client: fetch resources, collections, related resources and relationships
194
198
199
+ [ 5.0.2 ] : https://github.com/f3ath/json-api-dart/compare/5.0.1...5.0.2
195
200
[ 5.0.1 ] : https://github.com/f3ath/json-api-dart/compare/5.0.0...5.0.1
196
201
[ 5.0.0 ] : https://github.com/f3ath/json-api-dart/compare/3.2.3...5.0.0
197
202
[ 3.2.3 ] : https://github.com/f3ath/json-api-dart/compare/3.2.2...3.2.3
Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ import 'package:json_api/http.dart';
7
7
/// Handler which relies on the built-in Dart HTTP client.
8
8
/// It is the developer's responsibility to instantiate the client and
9
9
/// call `close()` on it in the end pf the application lifecycle.
10
- class PersistentHandler {
10
+ class PersistentHandler implements HttpHandler {
11
11
/// Creates a new instance of the handler. Do not forget to call `close()` on
12
12
/// the [client] when it's not longer needed.
13
13
PersistentHandler (this .client, {this .defaultEncoding = utf8});
14
14
15
15
final Client client;
16
16
final Encoding defaultEncoding;
17
17
18
+ @override
18
19
Future <HttpResponse > handle (HttpRequest request) async {
19
20
final response = await Response .fromStream (
20
21
await client.send (Request (request.method, request.uri)
Original file line number Diff line number Diff line change 1
1
name : json_api
2
- version : 5.0.1
2
+ version : 5.0.2
3
3
homepage : https://github.com/f3ath/json-api-dart
4
4
description : A framework-agnostic implementations of JSON:API Client and Server. Supports JSON:API v1.0 (https://jsonapi.org)
5
5
environment :
You can’t perform that action at this time.
0 commit comments