-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from edufolly/dev
Version 0.2.0.
- Loading branch information
Showing
9 changed files
with
285 additions
and
163 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
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,21 +1,74 @@ | ||
# curt | ||
|
||
Simple wrapper for curl in dart. | ||
[![Build With Love](https://img.shields.io/badge/%20built%20with-%20%E2%9D%A4-ff69b4.svg)](https://github.com/edufolly/curt/stargazers) | ||
[![Pub Package](https://img.shields.io/pub/v/curt?color=orange)](https://pub.dev/packages/curt) | ||
[![Licence](https://img.shields.io/github/license/edufolly/curt?color=blue)](https://github.com/edufolly/curt/blob/main/LICENSE) | ||
[![Build](https://img.shields.io/github/actions/workflow/status/edufolly/curt/main.yml?branch=main)](https://github.com/edufolly/curt/releases/latest) | ||
[![Coverage Report](https://img.shields.io/badge/coverage-report-C08EA1)](https://edufolly.github.io/curt/coverage/) | ||
|
||
[![BuildWithLove](https://img.shields.io/badge/%20built%20with-%20%E2%9D%A4-ff69b4.svg "build with love")](https://github.com/edufolly/curt/stargazers) | ||
[![pub package](https://img.shields.io/pub/v/curt?include_prereleases.svg "curt")](https://pub.dev/packages/curt) | ||
[![curt](https://img.shields.io/github/license/edufolly/curt "licence")](https://github.com/edufolly/curt) | ||
[![curt](https://img.shields.io/github/actions/workflow/status/edufolly/curt/main.yml?branch=main "build")](https://github.com/edufolly/curt) | ||
[![CoverageReport](https://img.shields.io/badge/coverage-report-blue "coverage report")](https://edufolly.github.io/curt/coverage/) | ||
A convenient package that allows developers to interact with the curl command | ||
within elegance of the Dart programming language. | ||
|
||
## Motivation | ||
|
||
Allow https connections with TLS less than 1.2 through curl. | ||
This wrapper simplifies the process of sending HTTP requests, handling | ||
responses, and managing data transfers, providing a more intuitive and efficient | ||
way to work with curl functionality in the Dart ecosystem. By encapsulating the | ||
complexity of curl within a straightforward wrapper, developers can leverage its | ||
power and flexibility while benefiting from the simplicity and elegance of the | ||
Dart programming language. | ||
|
||
## Funding | ||
|
||
Your contribution will help drive the development of quality tools for the | ||
Flutter and Dart developer community. Any amount will be appreciated. Thank you | ||
for your continued support! | ||
|
||
[![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg)](https://www.buymeacoffee.com/edufolly) | ||
|
||
### Code Example | ||
## PIX | ||
|
||
Sua contribuição ajudará a impulsionar o desenvolvimento de ferramentas de | ||
qualidade para a comunidade de desenvolvedores Flutter e Dart. Qualquer quantia | ||
será apreciada. Obrigado pelo seu apoio contínuo! | ||
|
||
[![PIX](helpers/pix.png)](https://nubank.com.br/pagar/2bt2q/RBr4Szfuwr) | ||
|
||
## Motivation | ||
|
||
Allow https connections with TLS less than 1.2 through [curl](https://curl.se/). | ||
|
||
Legacy systems or older applications that rely on older TLS versions for | ||
compatibility reasons. These systems might not have been upgraded to support TLS | ||
1.2 or higher due to various constraints, such as limited resources, technical | ||
limitations, or compatibility issues with certain dependencies. In such cases, | ||
allowing HTTPS connections with TLS versions less than 1.2 through curl would | ||
enable these systems to continue functioning without major modifications. | ||
|
||
Certain devices or environments might enforce outdated TLS configurations due to | ||
specific security policies or restrictions. These networks may still rely on | ||
older TLS versions for various reasons, such as interoperability with legacy | ||
systems or compliance with specific regulations. Allowing curl to establish | ||
HTTPS connections with TLS versions less than 1.2 would ensure compatibility and | ||
connectivity in these constrained environments. | ||
|
||
However, it's important to note that TLS versions prior to 1.2 (such as TLS 1.0 | ||
and TLS 1.1) are considered less secure and potentially vulnerable to various | ||
security threats. TLS 1.2 introduced significant improvements in terms of | ||
security, encryption algorithms, and cryptographic protocols. Therefore, it's | ||
generally recommended to use TLS 1.2 or higher for secure communications. | ||
|
||
## Example | ||
|
||
```dart | ||
import 'package:curt/curt.dart'; | ||
https://github.com/edufolly/curt/blob/main/example/curt_example.dart | ||
/// | ||
/// | ||
/// | ||
void main() async { | ||
final Curt curt = Curt(); | ||
final CurtResponse response = await curt.get(Uri.parse('https://google.com')); | ||
print('Status Code: ${response.statusCode}'); | ||
print('Headers: ${response.headers}'); | ||
print('Body:\n${response.body}'); | ||
} | ||
``` |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.