Last active
September 28, 2019 00:25
-
-
Save yongjhih/d8afd4ddcc28d709902a41899f800bb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleHttpClientRequest extends HttpClientRequest { | |
SimpleHttpClientRequest(this.request); | |
final http.Request request; | |
@override | |
Encoding encoding; | |
@override | |
void add(List<int> data) { | |
// TODO: implement add | |
} | |
@override | |
void addError(Object error, [StackTrace stackTrace]) { | |
// TODO: implement addError | |
} | |
@override | |
Future addStream(Stream<List<int>> stream) { | |
// TODO: implement addStream | |
return null; | |
} | |
@override | |
Future<HttpClientResponse> close() { | |
// TODO: implement close | |
return null; | |
} | |
@override | |
// TODO: implement connectionInfo | |
HttpConnectionInfo get connectionInfo => null; | |
@override | |
// TODO: implement cookies | |
List<Cookie> get cookies => null; | |
@override | |
// TODO: implement done | |
Future<HttpClientResponse> get done => null; | |
@override | |
Future flush() { | |
// TODO: implement flush | |
return null; | |
} | |
@override | |
// TODO: implement headers | |
HttpHeaders get headers => SimpleHttpHeaders(request.headers); | |
@override | |
// TODO: implement method | |
String get method => request.method; | |
@override | |
Uri get uri => request.url; | |
@override | |
void write(Object obj) { | |
// TODO: implement write | |
} | |
@override | |
void writeAll(Iterable objects, [String separator = ""]) { | |
// TODO: implement writeAll | |
} | |
@override | |
void writeCharCode(int charCode) { | |
// TODO: implement writeCharCode | |
} | |
@override | |
void writeln([Object obj = ""]) { | |
// TODO: implement writeln | |
} | |
} | |
class SimpleHttpHeaders extends HttpHeaders { | |
SimpleHttpHeaders(this.headers); | |
final Map<String, String> headers; | |
@override | |
List<String> operator [](String name) { | |
// TODO: implement [] | |
return null; | |
} | |
@override | |
void add(String name, Object value) { | |
// TODO: implement add | |
} | |
@override | |
void clear() { | |
// TODO: implement clear | |
} | |
@override | |
void forEach(void Function(String name, List<String> values) f) { | |
headers.forEach((k, v) => f(k, [v])); | |
} | |
@override | |
void noFolding(String name) { | |
// TODO: implement noFolding | |
} | |
@override | |
void remove(String name, Object value) { | |
// TODO: implement remove | |
} | |
@override | |
void removeAll(String name) { | |
// TODO: implement removeAll | |
} | |
@override | |
void set(String name, Object value) { | |
// TODO: implement set | |
} | |
@override | |
String value(String name) { | |
// TODO: implement value | |
return null; | |
} | |
} | |
class SimpleHttpClientResponse extends HttpClientResponse { | |
SimpleHttpClientResponse(this.response); | |
final http.Response response; | |
@override | |
HttpHeaders get headers => SimpleHttpHeaders(response.headers); | |
@override | |
int get statusCode => response.statusCode; | |
@override | |
Future<bool> any(bool Function(List<int> element) test) { | |
// TODO: implement any | |
return null; | |
} | |
@override | |
Stream<List<int>> asBroadcastStream({void Function(StreamSubscription<List<int>> subscription) onListen, void Function(StreamSubscription<List<int>> subscription) onCancel}) { | |
// TODO: implement asBroadcastStream | |
return null; | |
} | |
@override | |
Stream<E> asyncExpand<E>(Stream<E> Function(List<int> event) convert) { | |
// TODO: implement asyncExpand | |
return null; | |
} | |
@override | |
Stream<E> asyncMap<E>(FutureOr<E> Function(List<int> event) convert) { | |
// TODO: implement asyncMap | |
return null; | |
} | |
@override | |
Stream<R> cast<R>() { | |
// TODO: implement cast | |
return null; | |
} | |
@override | |
// TODO: implement certificate | |
X509Certificate get certificate => null; | |
@override | |
// TODO: implement compressionState | |
HttpClientResponseCompressionState get compressionState => null; | |
@override | |
// TODO: implement connectionInfo | |
HttpConnectionInfo get connectionInfo => null; | |
@override | |
Future<bool> contains(Object needle) { | |
// TODO: implement contains | |
return null; | |
} | |
@override | |
// TODO: implement contentLength | |
int get contentLength => null; | |
@override | |
// TODO: implement cookies | |
List<Cookie> get cookies => null; | |
@override | |
Future<Socket> detachSocket() { | |
// TODO: implement detachSocket | |
return null; | |
} | |
@override | |
Stream<List<int>> distinct([bool Function(List<int> previous, List<int> next) equals]) { | |
// TODO: implement distinct | |
return null; | |
} | |
@override | |
Future<E> drain<E>([E futureValue]) { | |
// TODO: implement drain | |
return null; | |
} | |
@override | |
Future<List<int>> elementAt(int index) { | |
// TODO: implement elementAt | |
return null; | |
} | |
@override | |
Future<bool> every(bool Function(List<int> element) test) { | |
// TODO: implement every | |
return null; | |
} | |
@override | |
Stream<S> expand<S>(Iterable<S> Function(List<int> element) convert) { | |
// TODO: implement expand | |
return null; | |
} | |
@override | |
// TODO: implement first | |
Future<List<int>> get first => null; | |
@override | |
Future<List<int>> firstWhere(bool Function(List<int> element) test, {List<int> Function() orElse}) { | |
// TODO: implement firstWhere | |
return null; | |
} | |
@override | |
Future<S> fold<S>(S initialValue, S Function(S previous, List<int> element) combine) { | |
// TODO: implement fold | |
return null; | |
} | |
@override | |
Future forEach(void Function(List<int> element) action) { | |
// TODO: implement forEach | |
return null; | |
} | |
@override | |
Stream<List<int>> handleError(Function onError, {bool test(error)}) { | |
// TODO: implement handleError | |
return null; | |
} | |
@override | |
// TODO: implement isBroadcast | |
bool get isBroadcast => null; | |
@override | |
// TODO: implement isEmpty | |
Future<bool> get isEmpty => null; | |
@override | |
// TODO: implement isRedirect | |
bool get isRedirect => null; | |
@override | |
Future<String> join([String separator = ""]) { | |
// TODO: implement join | |
return null; | |
} | |
@override | |
// TODO: implement last | |
Future<List<int>> get last => null; | |
@override | |
Future<List<int>> lastWhere(bool Function(List<int> element) test, {List<int> Function() orElse}) { | |
// TODO: implement lastWhere | |
return null; | |
} | |
@override | |
// TODO: implement length | |
Future<int> get length => null; | |
@override | |
StreamSubscription<List<int>> listen(void Function(List<int> event) onData, {Function onError, void Function() onDone, bool cancelOnError}) { | |
// TODO: implement listen | |
return null; | |
} | |
@override | |
Stream<S> map<S>(S Function(List<int> event) convert) { | |
// TODO: implement map | |
return null; | |
} | |
@override | |
// TODO: implement persistentConnection | |
bool get persistentConnection => null; | |
@override | |
Future pipe(StreamConsumer<List<int>> streamConsumer) { | |
// TODO: implement pipe | |
return null; | |
} | |
@override | |
// TODO: implement reasonPhrase | |
String get reasonPhrase => null; | |
@override | |
Future<HttpClientResponse> redirect([String method, Uri url, bool followLoops]) { | |
// TODO: implement redirect | |
return null; | |
} | |
@override | |
// TODO: implement redirects | |
List<RedirectInfo> get redirects => null; | |
@override | |
Future<List<int>> reduce(List<int> Function(List<int> previous, List<int> element) combine) { | |
// TODO: implement reduce | |
return null; | |
} | |
@override | |
// TODO: implement single | |
Future<List<int>> get single => null; | |
@override | |
Future<List<int>> singleWhere(bool Function(List<int> element) test, {List<int> Function() orElse}) { | |
// TODO: implement singleWhere | |
return null; | |
} | |
@override | |
Stream<List<int>> skip(int count) { | |
// TODO: implement skip | |
return null; | |
} | |
@override | |
Stream<List<int>> skipWhile(bool Function(List<int> element) test) { | |
// TODO: implement skipWhile | |
return null; | |
} | |
@override | |
Stream<List<int>> take(int count) { | |
// TODO: implement take | |
return null; | |
} | |
@override | |
Stream<List<int>> takeWhile(bool Function(List<int> element) test) { | |
// TODO: implement takeWhile | |
return null; | |
} | |
@override | |
Stream<List<int>> timeout(Duration timeLimit, {void Function(EventSink<List<int>> sink) onTimeout}) { | |
// TODO: implement timeout | |
return null; | |
} | |
@override | |
Future<List<List<int>>> toList() { | |
// TODO: implement toList | |
return null; | |
} | |
@override | |
Future<Set<List<int>>> toSet() { | |
// TODO: implement toSet | |
return null; | |
} | |
@override | |
Stream<S> transform<S>(StreamTransformer<List<int>, S> streamTransformer) { | |
// TODO: implement transform | |
return null; | |
} | |
@override | |
Stream<List<int>> where(bool Function(List<int> event) test) { | |
// TODO: implement where | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment