{"id":32269239,"url":"https://github.com/jaydaraniya/persist_http","last_synced_at":"2026-02-19T21:04:11.605Z","repository":{"id":211820523,"uuid":"730031485","full_name":"JAYDARANIYA/persist_http","owner":"JAYDARANIYA","description":"This library provides an efficient way to handle HTTP requests by reusing the same HTTP handshake. It's designed for Dart environments and supports all platforms except Flutter Web due to the use of dart:io.","archived":false,"fork":false,"pushed_at":"2024-02-18T05:29:17.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-16T01:23:15.254Z","etag":null,"topics":["dart","flutter","http"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JAYDARANIYA.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-11T03:43:55.000Z","updated_at":"2024-11-27T07:34:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"63e01c31-3040-4d7d-953f-ffb460325c19","html_url":"https://github.com/JAYDARANIYA/persist_http","commit_stats":null,"previous_names":["jaydaraniya/persist_http"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JAYDARANIYA/persist_http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAYDARANIYA%2Fpersist_http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAYDARANIYA%2Fpersist_http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAYDARANIYA%2Fpersist_http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAYDARANIYA%2Fpersist_http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JAYDARANIYA","download_url":"https://codeload.github.com/JAYDARANIYA/persist_http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAYDARANIYA%2Fpersist_http/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29632708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","http"],"created_at":"2025-10-22T22:23:02.247Z","updated_at":"2026-02-19T21:04:11.600Z","avatar_url":"https://github.com/JAYDARANIYA.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# persist_http\n\n[![pub](https://img.shields.io/pub/v/persist_http.svg)](https://pub.dev/packages/persist_http)\n[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT)\n[![Github issues](https://img.shields.io/github/issues/JAYDARANIYA/persist_http)](https://github.com/JAYDARANIYA/persist_http/issues?q=is%3Aissue+is%3Aopen+)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/JAYDARANIYA/persist_http/pulls)\n\nThis library provides an efficient way to handle HTTP requests by reusing the same HTTP handshake. It's designed for Dart environments and supports all platforms except Flutter Web due to the use of dart:io.\n\n## Installation\n``` yaml\ndependencies:\n    persist_http: ^0.0.1-beta\n```\n\n## Example\n\n```dart\nimport 'package:flutter/foundation.dart';\nimport 'package:persist_http/persist_http.dart';\n\nvoid main() async {\n  await connectionsCheck();\n  await multiCallWithPersistConnection();\n}\n\nFuture\u003cvoid\u003e connectionsCheck() async {\n  var client = PresistHttp(\"example.com\");\n  await client.connect();\n  await client.close();\n}\n\nFuture\u003cvoid\u003e multiCallWithPersistConnection() async {\n  final persistHttp = PresistHttp('randomuser.me');\n  await persistHttp.connect();\n\n  for (var i = 0; i \u003c 10; i++) {\n    final response = await persistHttp.get('/api');\n    debugPrint(response);\n  }\n\n  await persistHttp.close();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydaraniya%2Fpersist_http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydaraniya%2Fpersist_http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydaraniya%2Fpersist_http/lists"}