-
Notifications
You must be signed in to change notification settings - Fork 382
Merge package:http_parser
#1319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
fc2ccf4
Fix a library name conflict in pkg/http_parser.
nex3 adacbe1
Move a number of packages and some of pub over to using source_span.
nex3 aee2082
Update dart:collection to version 1.0.0
lrhn 9be549c
Clean up after r39484 and r39486.
nex3 50af99e
Add gitignore, status, and codereview files.
nex3 e64ccb6
Update the pubspec's homepage link.
nex3 11a3f4a
Fix the status file to match the package bots' expectations.
nex3 ea96049
Properly skip tests in packages directories.
nex3 59ce107
Remove initial */s in .status.
nex3 a732fde
http_parser: update unittest dependency, urls in pubspec and codereview
kevmoo e9a1bf2
format code, prepare for +6 release
kevmoo 4687b5e
Add more detail to the README.
nex3 c0a5aba
Upgrade to the new test package.
nex3 0cd7425
Don't double-close a WebSocket in web_socket_test.
nex3 a02634b
Bring in latest dart:io WebSocket code.
nex3 c24d3d2
Use the new test runner on the bots.
nex3 413f24c
Add an AuthenticationChallenge class.
nex3 b9a069a
Add a CaseInsensitiveMap class.
nex3 16149ed
cr
nex3 56e1468
cr
nex3 43cec2d
Merge branch 'authentication-challenge' into case-insensitive-map
nex3 9f7224a
Add an AuthenticationChallenge class.
nex3 db22041
Merge remote-tracking branch 'origin/master' into authentication-chal…
nex3 e738185
Merge branch 'authentication-challenge' into case-insensitive-map
nex3 7160455
Add a CaseInsensitiveMap class.
nex3 8baf0c2
Merge tag '1.0.0' to master.
whesse 306ef09
Make MediaType case-insensitive, following the spec.
nex3 b023517
Add a DataUri class.
nex3 a53a941
Remove DataUri.
nex3 b3a8581
Get rid of all the library tags.
nex3 2c4d4cc
Add a WebSocketChannel class.
nex3 0af1e7b
Release 2.1.0.
nex3 e2d654f
Deprecate WebSocketChannel.
nex3 75d8625
Add support for crypto 1.0.0.
nex3 076e719
Remove deprecated APIs.
nex3 4a3d12f
Remove unused libraries.
nex3 6cf995c
Remove unnecessary dependencies.
nex3 c9bc760
Support string_scanner 1.0.0.
nex3 8182d4e
Fix duplicate dependency on string_scanner
kevmoo 964da2b
Add a Codec for the chunked transfer coding. (dart-lang/http_parser#8)
nex3 9275100
Fix chunkedCoding. (dart-lang/http_parser#9)
nex3 4ecad21
Bump the version to 3.1.1. (dart-lang/http_parser#10)
nex3 d64470f
Fix strong mode errors in chunked_coding_test
natebosch caf71e0
Merge pull request dart-lang/http_parser#11 from dart-lang/natebosch_…
natebosch 28ab0ad
rename analysis_options to right name
kevmoo 43fc525
add travis file
kevmoo 3b791a7
dartfmt
kevmoo 784b251
Update comment style generic syntax
keertip baf17de
format file using 1.25.0-dev.8.0 (dart-lang/http_parser#14)
keertip 7eba0eb
Fix doc comment references
kevmoo e9ff785
Only test oldest supported and dev + stable
kevmoo bad13d9
Travis: only test master branch and pull requests
kevmoo 6c7582a
Bump min SDK and update changelog (dart-lang/http_parser#16)
kevmoo 73ac35e
Remove -dev.infinity in SDK upper constraint
kevmoo 40aea36
Stop running tests with Dartium
kevmoo cdbce46
Release 3.1.2 (dart-lang/http_parser#18)
nex3 b4c70ff
Remove upper case constants (dart-lang/http_parser#17)
lrhn ff6d612
Update .gitignore to new `dart_tool` pub cache (dart-lang/http_parser…
bcko 999c2c6
dartfmt
kevmoo fc17b28
chore: set max SDK version to <3.0.0 (dart-lang/http_parser#22)
chalin 7e8c491
Enable and fix standard lints, test on oldest supported SDK (dart-lan…
kevmoo 016f007
Enable and fix some more standard lints (dart-lang/http_parser#26)
kevmoo e0599f5
Fix newly enforced package:pedantic lints (dart-lang/http_parser#27)
natebosch 9cc7340
Remove dartlang.org links (dart-lang/http_parser#29)
kevmoo aef6ee4
Remove lints duplicated in pkg:pednatic
kevmoo c094d1e
Enable and fix comment references prefer_interpolation lints
kevmoo 0518ae9
lint: enable and fix prefer_final_locals
kevmoo 1ed3c12
Enable and fix some more lints
kevmoo 8906176
Readme: Add badges, update links
kevmoo 0a21bdb
Add an example
kevmoo ebb6b6a
Prepare to release 3.1.4
kevmoo 081fb35
fix lint that is now better enforced
kevmoo 38fe072
update min SDK to 2.7 (dart-lang/http_parser#32)
kevmoo 819f582
Delete .test_config
kevmoo a0b01c1
Enable null safety (dart-lang/http_parser#33)
kevmoo 4e28f69
Remove `?` from positional arg in implementation function
kevmoo bddcf28
Remove null_safety branch from .travis.yml
kevmoo 367e61f
Support latest Dart dev SDK (dart-lang/http_parser#35)
kevmoo f3870f0
Block publish for now, use major version bump (dart-lang/http_parser#36)
natebosch 31e04ca
Support Dart 2.11
kevmoo 08a8a99
Merge pull request dart-lang/http_parser#37 from dart-lang/bump_sdk
jakemac53 74d011e
Prepare to publish null-safe version (dart-lang/http_parser#38)
kevmoo 402b540
Migrate to GitHub Actions (dart-lang/http_parser#41)
athomas 45c06f6
stable null safety release (dart-lang/http_parser#42)
jakemac53 7dd72c6
Remove dependency on `package:charcode`. (dart-lang/http_parser#43)
lrhn 7ebf7ed
Update LICENSE
franklinyow 16b8ec3
Merge pull request dart-lang/http_parser#45 from dart-lang/franklinyo…
franklinyow 302bd37
Fix newly enforced lint (dart-lang/http_parser#46)
kevmoo 51b5d47
Update CI (dart-lang/http_parser#47)
kevmoo 48c2070
Dart format with latest SDK (dart-lang/http_parser#49)
kevmoo fdd0951
Move from pedantic to lints package (dart-lang/http_parser#50)
natebosch 2877d82
Prepare for publishing 4.0.1
sigurdm 5c5d9d0
Switch from homepage to repository in pubspec (dart-lang/http_parser#54)
devoncarew b776e54
Update actions (dart-lang/http_parser#55)
kevmoo 4c61649
Merge pull request dart-lang/http_parser#53 from sigurdm/publish_4_0_1
devoncarew 9f5a49f
Update README.md
devoncarew 219439c
Merge pull request dart-lang/http_parser#56 from dart-lang/devoncarew…
devoncarew 723bb5b
Remove deprecated experimental invariant_booleans lint rule
srawlins de93548
Merge pull request dart-lang/http_parser#57 from dart-lang/srawlins-p…
srawlins 31f225a
Add permissions to CI script (dart-lang/http_parser#58)
kevmoo 713e60f
Drop pkg:charcode usage in dev_dependencies
kevmoo 57396be
Merge pull request dart-lang/http_parser#59 from dart-lang/drop_pubsp…
devoncarew 1f33656
update CI; prep for publishing
devoncarew a65240b
Merge pull request dart-lang/http_parser#60 from dart-lang/prep_publish
devoncarew 5618f88
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/http_parser#65)
dependabot[bot] e791040
Migrate from no-implicit-casts to strict-casts (dart-lang/http_parser…
srawlins 0448e86
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/http_parser#67)
dependabot[bot] c421ef0
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/http_parser#68)
dependabot[bot] c5aa23b
Bump min SDK to 2.17 (dart-lang/http_parser#69)
kevmoo a8ad724
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/http_parser#71)
dependabot[bot] 1d10ca5
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/http_parser#70)
dependabot[bot] 2195e5c
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/http_parser#72)
dependabot[bot] 23bd5e9
blast_repo fixes (dart-lang/http_parser#73)
devoncarew a3a0d35
Require Dart 3.0, update lints (dart-lang/http_parser#74)
kevmoo 7bef32b
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/http_parser#75)
dependabot[bot] c8e39fb
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/http_parser#77)
dependabot[bot] 7ccbe7a
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/http_parser#79)
dependabot[bot] e7be02a
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/http_parser#78)
dependabot[bot] 9648d65
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/http_parser#81)
dependabot[bot] 0c4555e
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/http_parser#80)
dependabot[bot] 245a8dd
drop outdated lints (dart-lang/http_parser#82)
kevmoo 7ebcbd4
Test dart2wasm (dart-lang/http_parser#85)
kevmoo beb0e62
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/http_parser#86)
dependabot[bot] b0ec7c6
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/http_parser#87)
dependabot[bot] f8515e5
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/http_parser#88)
dependabot[bot] 062e447
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/http_parser#89)
dependabot[bot] 3826b21
blast_repo fixes (dart-lang/http_parser#90)
devoncarew 131903e
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] a63d064
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] cb9f4a5
Update min SDK, test wasm on 3.4 (dart-lang/http_parser#97)
kevmoo d3b2a69
blast_repo fixes (dart-lang/http_parser#98)
kevmoo 0fd1772
`CaseInsensitiveMap`: added constructor `fromEntries`. (dart-lang/htt…
gmpassos 73336b9
Prepare release v4.1.0 (dart-lang/http_parser#100)
kevmoo 86b434a
Bump the github-actions group with 2 updates (dart-lang/http_parser#101)
dependabot[bot] 85d2651
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] 86e6070
Merge package:http_parser into the http monorepo
mosuem 37b7a19
Add issue template and other fixes
mosuem ec4cdb0
Moving fixes
mosuem f1e57b4
Fixes as per review
mosuem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
name: "package:http_parser" | ||
about: "Create a bug or file a feature request against package:http_parser." | ||
labels: "package:http_parser" | ||
--- |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: package:http_parser | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '.github/workflows/http_parser.yaml' | ||
- 'pkgs/http_parser/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/http_parser.yaml' | ||
- 'pkgs/http_parser/**' | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
env: | ||
PUB_ENVIRONMENT: bot.github | ||
|
||
defaults: | ||
run: | ||
working-directory: pkgs/http_parser/ | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
# Check code formatting and static analysis on a single OS (linux) | ||
# against Dart dev. | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sdk: [dev] | ||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | ||
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- id: install | ||
name: Install dependencies | ||
run: dart pub get | ||
- name: Check formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
if: always() && steps.install.outcome == 'success' | ||
- name: Analyze code | ||
run: dart analyze --fatal-infos | ||
if: always() && steps.install.outcome == 'success' | ||
|
||
test: | ||
needs: analyze | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
sdk: [3.4, dev] | ||
steps: | ||
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | ||
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
- id: install | ||
name: Install dependencies | ||
run: dart pub get | ||
- name: Run VM tests | ||
run: dart test --platform vm | ||
if: always() && steps.install.outcome == 'success' | ||
- name: Run Chrome tests | ||
run: dart test --platform chrome | ||
if: always() && steps.install.outcome == 'success' | ||
- name: Run Chrome tests - wasm | ||
run: dart test --platform chrome --compiler dart2wasm | ||
if: always() && steps.install.outcome == 'success' |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Don’t commit the following directories created by pub. | ||
.dart_tool/ | ||
.packages | ||
pubspec.lock |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,146 @@ | ||
## 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 | ||
|
||
* Add `chunkedCoding`, a `Codec` that supports encoding and decoding the | ||
[chunked transfer coding][]. | ||
|
||
[chunked transfer coding]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1 | ||
|
||
## 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 | ||
|
||
* `WebSocketChannel` has been moved to | ||
[the `web_socket_channel` package][web_socket_channel]. The implementation | ||
here is now deprecated. | ||
|
||
[web_socket_channel]: https://pub.dev/packages/web_socket_channel | ||
|
||
## 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. |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright 2014, the Dart project authors. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
* Neither the name of Google LLC nor the names of its | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[](https://pub.dartlang.org/packages/http_parser) | ||
[](https://pub.dev/packages/http_parser/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][2616], 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][2616]. | ||
|
||
* A `WebSocketChannel` class that provides a `StreamChannel` interface for both | ||
the client and server sides of the [WebSocket protocol][6455] independently of | ||
any specific server implementation. | ||
|
||
[2616]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html | ||
[6455]: https://tools.ietf.org/html/rfc6455 |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# https://dart.dev/tools/analysis#the-analysis-options-file | ||
include: package:dart_flutter_team_lints/analysis_options.yaml | ||
|
||
analyzer: | ||
language: | ||
strict-casts: true | ||
strict-inference: true | ||
strict-raw-types: true | ||
|
||
linter: | ||
rules: | ||
- avoid_bool_literals_in_conditional_expressions | ||
- avoid_classes_with_only_static_members | ||
- avoid_private_typedef_functions | ||
- avoid_redundant_argument_values | ||
- avoid_returning_this | ||
- avoid_unused_constructor_parameters | ||
- avoid_void_async | ||
- cancel_subscriptions | ||
- join_return_with_assignment | ||
- literal_only_boolean_expressions | ||
- missing_whitespace_between_adjacent_strings | ||
- no_adjacent_strings_in_list | ||
- no_runtimeType_toString | ||
- package_api_docs | ||
- prefer_const_declarations | ||
- prefer_expression_function_bodies | ||
- prefer_final_locals | ||
- unnecessary_await_in_return | ||
- unnecessary_breaks | ||
- use_if_null_to_convert_nulls_to_bools | ||
- use_raw_strings | ||
- use_string_buffers |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'package:http_parser/http_parser.dart'; | ||
|
||
void main() { | ||
final date = DateTime.utc(2014, 9, 9, 9, 9, 9); | ||
print(date); // 2014-09-09 09:09:09.000Z | ||
|
||
final httpDateFormatted = formatHttpDate(date); | ||
print(httpDateFormatted); // Tue, 09 Sep 2014 09:09:09 GMT | ||
|
||
final nowParsed = parseHttpDate(httpDateFormatted); | ||
print(nowParsed); // 2014-09-09 09:09:09.000Z | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
export 'src/authentication_challenge.dart'; | ||
export 'src/case_insensitive_map.dart'; | ||
export 'src/chunked_coding.dart'; | ||
export 'src/http_date.dart'; | ||
export 'src/media_type.dart'; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.