p-hatan/ mirror

pub repository

mirror.p-hatan.ir

http_parser

1.0.0

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

Download archive

Readme

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. It includes:

  • 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 CompatibleWebSocket class that supports both the client and server sides of the WebSocket protocol independently of any specific server implementation.

Changelog

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.ir
flutter pub add http_parser
pubspec.yaml
name: http_parser
version: 1.0.0
author: "Dart Team <misc@dartlang.org>"
homepage: https://github.com/dart-lang/http_parser
description: >
  A platform-independent package for parsing and serializing HTTP formats.
dependencies:
  crypto: "^0.9.0"
  collection: ">=0.9.1 <2.0.0"
  source_span: "^1.0.0"
  string_scanner: ">=0.0.0 <0.2.0"
dev_dependencies:
  test: "^0.12.0"
environment:
  sdk: ">=1.8.0 <2.0.0"

Version history

VersionPublishedArchiveSHA-256
0.0.12014-04-03T01:34:56.438190ZDownload8ef43b9c0a022da3a20f87d2f5f1205fa3109a7d47b5f0a423695c522d1df527
0.0.22014-04-23T00:06:58.889730ZDownloada562823bc880c77cef3745dcf0e2ef96a10107474823f81f2da3757412c520d4
0.0.2+12014-05-09T02:48:01.297740ZDownload9fe5bfaca6e9582322997e3503d693d9c88f9e94e9555629bcd14071ab20ff38
0.0.2+22014-05-09T20:27:14.220830ZDownloadcd44b5efcdcfe357acdc73f7fe6819f0b81f730b2a615b1961bf5bb0875f82d8
0.0.2+32014-06-02T21:26:54.369770ZDownload6fba98610c4e467eb9ad438d852104655e0daae381c4e3a79c024bdba545db65
0.0.2+42014-07-24T03:10:21.304320ZDownload0f826a534b483ea905f17be68112adb7520f9fcbeae296697002a082daa3427e
0.0.2+52014-08-26T19:51:14.446690ZDownload74dfc897e14cf1301d45e2ce92c225584ffd536ee01d3e811f6450b8c088a39e
0.0.2+62015-03-30T22:59:13.289450ZDownload488db9c1134271f809ed1b0d4fb86e4a1e79bfefe592fbd497ab7b9c769c5e3d
0.0.2+72015-06-09T19:10:50.001ZDownload7451acfa39c6136fd79d396f6fde1ee0dbbc08b6afd23d4a34de748852713139
0.0.2+82015-07-15T23:03:40.129ZDownload72ebdcdb88a7aaa71a896acdf2776a1d442e73104c27b64117d3622885ee60fb
1.0.02015-08-25T23:55:12.068ZDownloadae8b6f39bf6161bdda410851506d2905be00392631f2e45cbe6d4fdd7eeee754
1.1.02015-10-20T23:39:21.049ZDownloadf5313c256d444635ad960c261e67931009f4f251e0dc0815017aa123b1538d2d
2.0.02015-12-14T22:06:53.802ZDownload6c8291efac219c22724950fe69f97f0fac04d578f2ae64be2d70c87f30b85c9f
2.1.02016-01-28T21:40:28.704ZDownloade792a350f7c95f053f82385fb5937277328a2090fc20e436072ac650791157e8
2.2.02016-03-03T20:09:16.619ZDownloadcd1b8371ea1b970b2e05cc09e91c42626f8a86e2e877b9a184d1e6bd719d9ac9
2.2.12016-03-23T20:54:16.188ZDownloadf40464d343e8a15375072df3119c3391131754d48d04ca549ab5a4c2ca6c0a70
3.0.02016-05-05T00:46:47.969ZDownloadeb730dc4b613a152dfeb3c9234c3bb0f84410d93f5db19ba4b2201397835c047
3.0.12016-05-19T19:15:29.892ZDownload4fa916b82c2efa1e4d2a93a224dc2ec244e99908680688bb868d0ed2927fa44f
3.0.22016-06-20T23:25:51.621ZDownload96d1dfe41bcc666cf37f81521d498fdbb59fbfdbd9993aae5cc1ff916073f71b
3.0.32016-10-12T22:58:09.852ZDownloadfbbb7a53dfc99864531d346e8483d60c25ba83a6a250990cad641c45488ba5b8
3.1.02016-12-06T21:44:47.418ZDownloadec05c896b259f60296d92807b1231cf6b94bcf3e3d99e4e707b3e0ef82d36c2e
3.1.12016-12-15T01:40:56.498ZDownloadcdd2fbf11f37ada5d81ab55395a5f1a7be303beee4b2b73631192cc6fe46a34e
3.1.22018-05-02T21:00:23.383371ZDownload65aa2a54a960d44b0ecc7df1ab1eaef9c766fa6572e5db8452ebff181a2d54bd
3.1.32018-07-19T19:11:56.650599ZDownload922804ee33df3ffe79675509bc20a61f6bd06ad733cef811616790948b99d74b
3.1.42020-03-24T17:50:01.161527ZDownload9d2b0626e9e402fc98e6868360da8f256064d6c0b8e4c3edcca5e02fb0b95da9
4.0.0-nullsafety2020-11-06T21:46:01.611836ZDownload9819960f1a60b0db8a8b62f7e88c991fd0e742237b4b91d6919e81c9863e3387
4.0.02021-02-05T19:09:28.345586ZDownloade362d639ba3bc07d5a71faebb98cde68c05bfbcfbbb444b60b6f60bb67719185
4.0.12022-05-18T19:54:29.722750ZDownloaddb3060f22889f3d9d55f6a217565486737037eec3609f7f3eca4d0c67ee0d8a0
4.0.22022-10-14T17:25:01.295410ZDownload2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b
4.1.02024-06-17T19:00:21.139708ZDownload40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4
4.1.12024-10-18T09:01:09.368477ZDownload76d306a1c3afb33fe82e2bbacad62a61f409b5634c915fceb0d799de1a913360
4.1.22025-01-02T18:37:12.729308ZDownload178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571

Dependencies

collection "\u003e=0.9.1 \u003c2.0.0"

crypto "^0.9.0"

source_span "^1.0.0"

string_scanner "\u003e=0.0.0 \u003c0.2.0"