Skip to content

Commit

Permalink
Merge branch 'master' into merge-web_socket_channel-package
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem authored Jan 22, 2025
2 parents 1312034 + 27184eb commit 40a83eb
Show file tree
Hide file tree
Showing 42 changed files with 12,571 additions and 8,828 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/http_multi_server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:http_multi_server"
about: "Create a bug or file a feature request against package:http_multi_server."
labels: "package:http_multi_server"
---
28 changes: 18 additions & 10 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,40 @@

'type-infra':
- changed-files:
- any-glob-to-any-file: '.github/**'
- any-glob-to-any-file: '.github/**'

'package:cronet_http':
- changed-files:
- any-glob-to-any-file: 'pkgs/cronet_http/**'
- any-glob-to-any-file: 'pkgs/cronet_http/**'

'package:cupertino_http':
- changed-files:
- any-glob-to-any-file: 'pkgs/cupertino_http/**'
- any-glob-to-any-file: 'pkgs/cupertino_http/**'

'package:http':
- changed-files:
- any-glob-to-any-file: 'pkgs/http/**'
- any-glob-to-any-file: 'pkgs/http/**'

'package:http2':
- changed-files:
- any-glob-to-any-file: 'pkgs/http2/**'
- any-glob-to-any-file: 'pkgs/http2/**'

'package:http_parser':
'package:http_client_conformance_tests':
- changed-files:
- any-glob-to-any-file: 'pkgs/http_parser/**'
- any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**'

'package:http_client_conformance_tests':
'package:http_multi_server':
- changed-files:
- any-glob-to-any-file: 'pkgs/http_multi_server/**'

'package:http_parser':
- changed-files:
- any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**'
- any-glob-to-any-file: 'pkgs/http_parser/**'

'package:web_socket_channel':
- changed-files:
- any-glob-to-any-file: 'pkgs/web_socket_channel/**'
- any-glob-to-any-file: 'pkgs/web_socket_channel/**'

'package:web_socket_conformance_tests':
- changed-files:
- any-glob-to-any-file: 'pkgs/http_client_conformance_tests/**'
70 changes: 70 additions & 0 deletions .github/workflows/http_multi_server.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: package:http_multi_server

on:
push:
branches:
- master
paths:
- '.github/workflows/http_multi_server.yaml'
- 'pkgs/http_multi_server/**'
pull_request:
paths:
- '.github/workflows/http_multi_server.yaml'
- 'pkgs/http_multi_server/**'
schedule:
- cron: "0 0 * * 0"

defaults:
run:
working-directory: pkgs/http_multi_server/

env:
PUB_ENVIRONMENT: bot.github

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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
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'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.2, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
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'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and the browser.
| [http](pkgs/http/) | A composable, multi-platform, Future-based API for HTTP requests. | [![pub package](https://img.shields.io/pub/v/http.svg)](https://pub.dev/packages/http) |
| [http2](pkgs/http2/) | A HTTP/2 implementation in Dart. | [![pub package](https://img.shields.io/pub/v/http2.svg)](https://pub.dev/packages/http2) |
| [http_client_conformance_tests](pkgs/http_client_conformance_tests/) | A library that tests whether implementations of package:http's `Client` class behave as expected. | |
| [http_multi_server](pkgs/http_multi_server/) | A `dart:io` `HttpServer` wrapper that handles requests from multiple servers. | [![pub package](https://img.shields.io/pub/v/http_multi_server.svg)](https://pub.dev/packages/http_multi_server) |
| [http_parser](pkgs/http_parser/) | A platform-independent package for parsing and serializing HTTP formats. | [![pub package](https://img.shields.io/pub/v/http_parser.svg)](https://pub.dev/packages/http_parser) |
| [http_profile](pkgs/http_profile/) | A library used by HTTP client authors to integrate with the DevTools Network View. | [![pub package](https://img.shields.io/pub/v/http_profile.svg)](https://pub.dev/packages/http_profile) |
| [ok_http](pkgs/ok_http/) | An Android Flutter plugin that provides access to the [OkHttp](https://square.github.io/okhttp/) HTTP client and the OkHttp [WebSocket](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-web-socket/index.html) API. | [![pub package](https://img.shields.io/pub/v/ok_http.svg)](https://pub.dev/packages/ok_http) |
Expand Down
12 changes: 10 additions & 2 deletions pkgs/cupertino_http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
## 2.0.2-wip
## 2.0.3-wip

* Upgrade to `package:objective_c` 4.0.
* Remove some unnecessary native code.

## 2.0.2

* Upgrade to `package:objective_c` 4.1.
* Upgrade to `package:ffigen` 16.1.
* Fixes a bug where responses were not processed correctly:
* [#1413](https://github.com/dart-lang/http/issues/1413)
* [#1446](https://github.com/dart-lang/http/issues/1446)

## 2.0.1

Expand Down
Loading

0 comments on commit 40a83eb

Please sign in to comment.