Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6bd479
commit 39509d6
Showing
6 changed files
with
39 additions
and
55 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
[![Build Status](https://travis-ci.org/dart-lang/sync_http.svg?branch=master)](https://travis-ci.org/dart-lang/sync_http/) | ||
[![Dart CI](https://github.com/google/sync_http.dart/actions/workflows/test-package.yml/badge.svg)](https://github.com/google/sync_http.dart/actions/workflows/test-package.yml) | ||
[![pub package](https://img.shields.io/pub/v/sync_http.svg)](https://pub.dev/packages/sync_http) | ||
[![package publisher](https://img.shields.io/pub/publisher/sync_http.svg)](https://pub.dev/packages/sync_http/publisher) | ||
|
||
A simple Dart HTTP client implemented using RawSynchronousSockets to allow for | ||
A Dart HTTP client implemented using RawSynchronousSockets to allow for | ||
synchronous HTTP requests. | ||
|
||
**Warning**: This library should probably only be used to connect to HTTP | ||
servers that are hosted on 'localhost'. The operations in this library will | ||
block the calling thread to wait for a response from the HTTP server. The thread | ||
can process no other events while waiting for the server to respond. As such, | ||
this synchronous HTTP client library is not suitable for applications that | ||
require high performance. Instead, such applications should use libraries built | ||
on asynchronous I/O, including | ||
## Using this package | ||
|
||
**Note**: this package is only intended for very specialized use cases. For | ||
general HTTP usage, please see instead | ||
[package:http](https://pub.dev/packages/http). | ||
|
||
This library should probably only be used to connect to HTTP servers that are | ||
hosted on 'localhost'. The operations in this library will block the calling | ||
thread to wait for a response from the HTTP server. The thread can process no | ||
other events while waiting for the server to respond. As such, this synchronous | ||
HTTP client library is not suitable for applications that require high | ||
performance. Instead, such applications should use libraries built on | ||
asynchronous I/O, including | ||
[dart:io](https://api.dart.dev/stable/dart-io/dart-io-library.html) | ||
and [package:http](https://pub.dev/packages/http), for the best | ||
performance. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,19 @@ | ||
include: package:pedantic/analysis_options.yaml | ||
include: package:lints/recommended.yaml | ||
|
||
analyzer: | ||
strong-mode: | ||
implicit-casts: false | ||
|
||
linter: | ||
rules: | ||
- avoid_empty_else | ||
- avoid_init_to_null | ||
- avoid_null_checks_in_equality_operators | ||
- always_declare_return_types | ||
- avoid_dynamic_calls | ||
- avoid_unused_constructor_parameters | ||
- await_only_futures | ||
- camel_case_types | ||
- cancel_subscriptions | ||
- constant_identifier_names | ||
- control_flow_in_finally | ||
- directives_ordering | ||
- empty_catches | ||
- empty_constructor_bodies | ||
- empty_statements | ||
- hash_and_equals | ||
- implementation_imports | ||
- iterable_contains_unrelated_type | ||
- library_names | ||
- library_prefixes | ||
- list_remove_unrelated_type | ||
- non_constant_identifier_names | ||
- overridden_fields | ||
- omit_local_variable_types | ||
- package_api_docs | ||
- package_names | ||
- package_prefixed_library_names | ||
- prefer_equal_for_default_values | ||
- prefer_expression_function_bodies | ||
- prefer_final_fields | ||
- prefer_generic_function_type_aliases | ||
- prefer_is_not_empty | ||
- prefer_relative_imports | ||
- slash_for_doc_comments | ||
- prefer_single_quotes | ||
- test_types_in_equals | ||
- throw_in_finally | ||
- type_init_formals | ||
- unnecessary_brace_in_string_interps | ||
- unnecessary_const | ||
- unnecessary_new | ||
- unnecessary_parenthesis | ||
- unrelated_type_equality_checks | ||
- valid_regexps | ||
- unawaited_futures |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
name: sync_http | ||
version: 0.3.1-dev | ||
version: 0.3.1 | ||
description: Synchronous HTTP client for Dart. | ||
repository: https://github.com/google/sync_http.dart | ||
|
||
environment: | ||
sdk: '>=2.12.0 <3.0.0' | ||
|
||
dev_dependencies: | ||
pedantic: ^1.10.0-nullsafety.0 | ||
test: ^1.16.0-nullsafety.8 | ||
lints: ^1.0.0 | ||
test: ^1.16.0 |
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