p-hatan/ mirror

pub repository

mirror.p-hatan.com

http_parser

4.1.2

A platform-independent package for parsing and serializing HTTP formats.

Cached in Iran · Upstream SHA-256 matched

Download archive

Readme

Pub Package package publisher

http_parser is a platform-independent package for parsing and serializing various HTTP-related formats. It's designed to be usable on both the browser and the server, and thus avoids referencing any types from dart:io or dart:html.

Features

  • Support for parsing and formatting dates according to HTTP/1.1, the HTTP/1.1 standard.

  • A MediaType class that represents an HTTP media type, as used in Accept and Content-Type headers. This class supports both parsing and formatting media types according to HTTP/1.1.

  • A WebSocketChannel class that provides a StreamChannel interface for both the client and server sides of the WebSocket protocol independently of any specific server implementation.

Changelog

4.1.2

  • Fixed a bug where parsing quoted header values could require a regex to backtrack
  • Fixed a bug where quoted header values containing escaped quotes would not be correctly parsed.

4.1.1

  • Move to dart-lang/http monorepo.

4.1.0

  • CaseInsensitiveMap: added constructor fromEntries.
  • Require package:collection ^1.19.0
  • Require Dart ^3.4.0

4.0.2

  • Remove package:charcode from dev_dependencies.

4.0.1

  • Remove dependency on package:charcode.

4.0.0

  • Stable null safety stable release.

4.0.0-nullsafety

  • Migrate to null safety.

3.1.4

  • Fixed lints affecting package health score.
  • Added an example.

3.1.3

  • Set max SDK version to <3.0.0, and adjust other dependencies.

3.1.2

  • Require Dart SDK 2.0.0-dev.17.0 or greater.

  • A number of strong-mode fixes.

3.1.1

  • Fix a logic bug in the chunkedCoding codec. It had been producing invalid output and rejecting valid input.

3.1.0

3.0.2

  • Support string_scanner 1.0.0.

3.0.1

  • Remove unnecessary dependencies.

3.0.0

  • All deprecated APIs have been removed. No new APIs have been added. Packages that would use 3.0.0 as a lower bound should use 2.2.0 instead—for example, http_parser: ">=2.2.0 <4.0.0".

  • Fix all strong-mode warnings.

2.2.1

  • Add support for crypto 1.0.0.

2.2.0

2.1.0

  • Added WebSocketChannel, an implementation of StreamChannel that's backed by a WebSocket.

  • Deprecated CompatibleWebSocket in favor of WebSocketChannel.

2.0.0

  • Removed the DataUri class. It's redundant with the Uri.data getter that's coming in Dart 1.14, and the DataUri.data field in particular was an invalid override of that field.

1.1.0

  • The MIME spec says that media types and their parameter names are case-insensitive. Accordingly, MediaType now uses a case-insensitive map for its parameters and its type and subtype fields are now always lowercase.

1.0.0

This is 1.0.0 because the API is stable—there are no breaking changes.

  • Added an AuthenticationChallenge class for parsing and representing the value of WWW-Authenticate and related headers.

  • Added a CaseInsensitiveMap class for representing case-insensitive HTTP values.

0.0.2+8

  • Bring in the latest dart:io WebSocket code.

0.0.2+7

  • Add more detail to the readme.

0.0.2+6

  • Updated homepage URL.

0.0.2+5

  • Widen the version constraint on the collection package.

0.0.2+4

  • Widen the string_scanner version constraint.

0.0.2+3

  • Fix a library name conflict.

0.0.2+2

  • Fixes for HTTP date formatting.

0.0.2+1

  • Minor code refactoring.

0.0.2

  • Added CompatibleWebSocket, for platform- and API-independent support for the WebSocket API.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add http_parser
pubspec.yaml
name: http_parser
version: 4.1.2
description: >-
  A platform-independent package for parsing and serializing HTTP formats.
repository: https://github.com/dart-lang/http/tree/master/pkgs/http_parser

environment:
  sdk: ^3.4.0

dependencies:
  collection: ^1.19.0
  source_span: ^1.8.0
  string_scanner: ^1.1.0
  typed_data: ^1.3.0

dev_dependencies:
  dart_flutter_team_lints: ^3.0.0
  test: ^1.16.6

Version history

VersionPublishedArchiveSHA-256
0.0.12014-04-03T01:34:56.438190ZCached8ef43b9c0a022da3a20f87d2f5f1205fa3109a7d47b5f0a423695c522d1df527
0.0.22014-04-23T00:06:58.889730ZCacheda562823bc880c77cef3745dcf0e2ef96a10107474823f81f2da3757412c520d4
0.0.2+12014-05-09T02:48:01.297740ZCached9fe5bfaca6e9582322997e3503d693d9c88f9e94e9555629bcd14071ab20ff38
0.0.2+22014-05-09T20:27:14.220830ZCachedcd44b5efcdcfe357acdc73f7fe6819f0b81f730b2a615b1961bf5bb0875f82d8
0.0.2+32014-06-02T21:26:54.369770ZCached6fba98610c4e467eb9ad438d852104655e0daae381c4e3a79c024bdba545db65
0.0.2+42014-07-24T03:10:21.304320ZCached0f826a534b483ea905f17be68112adb7520f9fcbeae296697002a082daa3427e
0.0.2+52014-08-26T19:51:14.446690ZCached74dfc897e14cf1301d45e2ce92c225584ffd536ee01d3e811f6450b8c088a39e
0.0.2+62015-03-30T22:59:13.289450ZCached488db9c1134271f809ed1b0d4fb86e4a1e79bfefe592fbd497ab7b9c769c5e3d
0.0.2+72015-06-09T19:10:50.001ZCached7451acfa39c6136fd79d396f6fde1ee0dbbc08b6afd23d4a34de748852713139
0.0.2+82015-07-15T23:03:40.129ZCached72ebdcdb88a7aaa71a896acdf2776a1d442e73104c27b64117d3622885ee60fb
1.0.02015-08-25T23:55:12.068ZCachedae8b6f39bf6161bdda410851506d2905be00392631f2e45cbe6d4fdd7eeee754
1.1.02015-10-20T23:39:21.049ZCachedf5313c256d444635ad960c261e67931009f4f251e0dc0815017aa123b1538d2d
2.0.02015-12-14T22:06:53.802ZCached6c8291efac219c22724950fe69f97f0fac04d578f2ae64be2d70c87f30b85c9f
2.1.02016-01-28T21:40:28.704ZCachede792a350f7c95f053f82385fb5937277328a2090fc20e436072ac650791157e8
2.2.02016-03-03T20:09:16.619ZCachedcd1b8371ea1b970b2e05cc09e91c42626f8a86e2e877b9a184d1e6bd719d9ac9
2.2.12016-03-23T20:54:16.188ZCachedf40464d343e8a15375072df3119c3391131754d48d04ca549ab5a4c2ca6c0a70
3.0.02016-05-05T00:46:47.969ZCachedeb730dc4b613a152dfeb3c9234c3bb0f84410d93f5db19ba4b2201397835c047
3.0.12016-05-19T19:15:29.892ZCached4fa916b82c2efa1e4d2a93a224dc2ec244e99908680688bb868d0ed2927fa44f
3.0.22016-06-20T23:25:51.621ZCached96d1dfe41bcc666cf37f81521d498fdbb59fbfdbd9993aae5cc1ff916073f71b
3.0.32016-10-12T22:58:09.852ZCachedfbbb7a53dfc99864531d346e8483d60c25ba83a6a250990cad641c45488ba5b8
3.1.02016-12-06T21:44:47.418ZCachedec05c896b259f60296d92807b1231cf6b94bcf3e3d99e4e707b3e0ef82d36c2e
3.1.12016-12-15T01:40:56.498ZCachedcdd2fbf11f37ada5d81ab55395a5f1a7be303beee4b2b73631192cc6fe46a34e
3.1.22018-05-02T21:00:23.383371ZCached65aa2a54a960d44b0ecc7df1ab1eaef9c766fa6572e5db8452ebff181a2d54bd
3.1.32018-07-19T19:11:56.650599ZCached922804ee33df3ffe79675509bc20a61f6bd06ad733cef811616790948b99d74b
3.1.42020-03-24T17:50:01.161527ZCached9d2b0626e9e402fc98e6868360da8f256064d6c0b8e4c3edcca5e02fb0b95da9
4.0.0-nullsafety2020-11-06T21:46:01.611836ZCached9819960f1a60b0db8a8b62f7e88c991fd0e742237b4b91d6919e81c9863e3387
4.0.02021-02-05T19:09:28.345586ZCachede362d639ba3bc07d5a71faebb98cde68c05bfbcfbbb444b60b6f60bb67719185
4.0.12022-05-18T19:54:29.722750ZCacheddb3060f22889f3d9d55f6a217565486737037eec3609f7f3eca4d0c67ee0d8a0
4.0.22022-10-14T17:25:01.295410ZCached2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b
4.1.02024-06-17T19:00:21.139708ZCached40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4
4.1.12024-10-18T09:01:09.368477ZCached76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360
4.1.22025-01-02T18:37:12.729308ZCached178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571

Dependencies

collection "^1.19.0"

source_span "^1.8.0"

string_scanner "^1.1.0"

typed_data "^1.3.0"