Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lejard-h committed Feb 16, 2019
2 parents 9bbaba6 + 8ff161b commit 1d9088a
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 26 deletions.
17 changes: 0 additions & 17 deletions chopper/example/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:async';

import 'package:chopper/chopper.dart';
import 'package:chopper/src/interceptor.dart';
import 'definition.dart';
Expand All @@ -24,18 +22,3 @@ main() async {

chopper.dispose();
}

class _Converter implements Converter {
@override
FutureOr<Request> convertRequest(Request request) {
// TODO: implement convertRequest
return null;
}

@override
FutureOr<Response<ConvertedResponseType>>
convertResponse<ConvertedResponseType>(Response response) {
// TODO: implement convertResponse
return null;
}
}
10 changes: 1 addition & 9 deletions chopper/lib/src/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,7 @@ class Request {
return uri;
}

Map<String, String> _buildHeaders() {
final heads = Map<String, String>.from(headers);

if (json == true) {
heads["Content-Type"] = 'application/json';
}

return heads;
}
Map<String, String> _buildHeaders() => Map<String, String>.from(headers);

Future<http.BaseRequest> _toMultipartRequest(
String method,
Expand Down
75 changes: 75 additions & 0 deletions example/.packages
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# Generated by pub on 2019-02-16 14:19:44.644637.
analyzer:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/analyzer-0.33.6+1/lib/
analyzer_plugin:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/analyzer_plugin-0.0.1-alpha.5/lib/
Expand Down Expand Up @@ -66,4 +67,78 @@ utf:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/utf-0.9.0+5/lib/
watcher:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.7+10/lib/
web_socket_channel:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/web_socket_channel-1.0.9/lib/
yaml:file:///Users/lejard_h/.pub-cache/hosted/pub.dartlang.org/yaml-2.1.15/lib/
=======
# Generated by pub on 2019-02-13 10:24:13.984523.
analyzer:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/analyzer-0.33.3/lib/
angular:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/angular-5.1.0/lib/
angular_ast:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/angular_ast-0.5.7/lib/
angular_compiler:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/angular_compiler-0.4.1/lib/
archive:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/archive-2.0.4/lib/
args:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/args-1.5.0/lib/
async:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/async-2.0.8/lib/
bazel_worker:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/bazel_worker-0.1.13/lib/
build:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build-1.0.1/lib/
build_config:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_config-0.3.1+4/lib/
build_modules:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_modules-1.0.2/lib/
build_resolvers:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_resolvers-0.2.2+6/lib/
build_runner:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_runner-1.1.1/lib/
build_runner_core:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_runner_core-1.1.0/lib/
build_web_compilers:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/build_web_compilers-0.4.4+2/lib/
built_collection:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/built_collection-4.0.0/lib/
built_value:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/built_value-6.1.3/lib/
charcode:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
chopper:../chopper/lib/
chopper_generator:../chopper_generator/lib/
code_builder:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/code_builder-3.1.3/lib/
collection:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/
convert:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/convert-2.0.2/lib/
crypto:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/crypto-2.0.6/lib/
csslib:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/csslib-0.14.5/lib/
dart_style:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.0/lib/
fixnum:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/fixnum-0.10.8/lib/
front_end:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.6+3/lib/
glob:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/glob-1.1.7/lib/
graphs:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/graphs-0.1.2+1/lib/
html:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/html-0.13.3+3/lib/
http:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/http-0.11.3+17/lib/
http_multi_server:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.0.5/lib/
http_parser:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.3/lib/
intl:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/intl-0.15.7/lib/
io:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/io-0.3.3/lib/
jaguar_serializer:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/jaguar_serializer-2.2.2/lib/
jaguar_serializer_cli:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/jaguar_serializer_cli-2.2.4/lib/
js:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/
json_annotation:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/json_annotation-1.2.0/lib/
json_serializable:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/json_serializable-1.5.1/lib/
kernel:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/kernel-0.3.6+3/lib/
logging:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/logging-0.11.3+2/lib/
matcher:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.4/lib/
meta:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/meta-1.1.6/lib/
mime:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/mime-0.9.6+2/lib/
package_config:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/package_config-1.0.5/lib/
path:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/path-1.6.2/lib/
pedantic:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/pedantic-1.1.0/lib/
plugin:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/plugin-0.2.0+3/lib/
pool:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/pool-1.3.6/lib/
protobuf:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/protobuf-0.10.2/lib/
pub_semver:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/pub_semver-1.4.2/lib/
pubspec_parse:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/pubspec_parse-0.1.2+2/lib/
quiver:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.0+1/lib/
scratch_space:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/scratch_space-0.0.3+2/lib/
shelf:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/shelf-0.7.3+3/lib/
shelf_web_socket:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/shelf_web_socket-0.2.2+4/lib/
source_gen:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/source_gen-0.9.1+3/lib/
source_maps:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/source_maps-0.10.7/lib/
source_span:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/source_span-1.4.1/lib/
stack_trace:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/
stream_channel:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/stream_channel-1.6.8/lib/
stream_transform:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/stream_transform-0.0.14+1/lib/
string_scanner:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.4/lib/
timing:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/timing-0.1.1+1/lib/
typed_data:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/
utf:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/utf-0.9.0+5/lib/
watcher:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/watcher-0.9.7+10/lib/
web_socket_channel:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/web_socket_channel-1.0.9/lib/
yaml:file:///home/hadrien/.pub-cache/hosted/pub.dartlang.org/yaml-2.1.15/lib/
>>>>>>> master
chopper_example:lib/

0 comments on commit 1d9088a

Please sign in to comment.