# sync_http 0.3.1

Synchronous HTTP client for Dart.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add sync_http
```
Published: 2022-06-15T17:44:08.242497Z
Expected archive SHA-256: 7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961

Available in cache; verification: upstream_checksum
## Direct dependencies

## Package README (untrusted upstream documentation)
[![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 Dart HTTP client implemented using RawSynchronousSockets to allow for
synchronous HTTP requests.

## 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.

## Changelog
## v0.3.1

* Switch to using `package:lints/recommended.yaml`
* Update the usage guidance in the readme.

## v0.3.0

* Stable version for null safety.

## v0.3.0-nullsafety.0

* **BREAKING** `SyncHttpClient` functions now require the `url` parameter to be
  `Uri`. Previously, both `Uri` and `String` were supported.

* The `SyncHttpClientResponse.contentLength` getter will return `-1` instead of
  `null` if content length not specified.

* Implement `chunkedTransferEncoding` getters.

## v0.2.0

* Preparation for [HttpHeaders change]. Update signature of `add()`
  and `set()` to match new signature of `HttpHeaders`. The
  parameter is not yet forwarded and will not behave as expected.

  [HttpHeaders change]: https://github.com/dart-lang/sdk/issues/39657

## v0.1.4

* Fixed issue where query parameters were not being sent as part of requests.

## v0.1.3

* Updated SDK version upper bound to 3.0.0.

## v0.1.2

* Require Dart 2.







 
