-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump to 0.1.1 * Document public methods * Update URLs * Add basic CI
- Loading branch information
Showing
9 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
name: analyze tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test-kite-http: | ||
name: Test main nyxx package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pub_cache | ||
key: ${{ runner.os }} | ||
|
||
- name: Setup Dart Action | ||
uses: cedx/setup-dart@v2.3.0 | ||
with: | ||
release-channel: stable | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Install dependencies | ||
working-directory: ./ | ||
run: dart pub get | ||
|
||
- name: Analyze project source | ||
working-directory: ./ | ||
run: dart analyze |
This file contains 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 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 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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
library kite_http; | ||
|
||
import 'dart:async'; | ||
import 'dart:collection'; | ||
import 'dart:io'; | ||
import 'dart:convert' show jsonDecode, jsonEncode, utf8; | ||
import "dart:async"; | ||
import "dart:convert" show jsonDecode, jsonEncode, utf8; | ||
import "dart:io"; | ||
|
||
part "src/HandlerMetadata.dart"; | ||
part "src/KiteServer.dart"; | ||
part "src/Request.dart"; | ||
part "src/Response.dart"; | ||
part "src/HandlerMetadata.dart"; |
This file contains 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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
part of kite_http; | ||
|
||
/// Metadata on handlers | ||
class HandlerMetadata { | ||
/// The route to check for | ||
final RegExp route; | ||
|
||
/// The HTTP Verb to listen for | ||
final String method; | ||
|
||
/// Create new metadata for handler registration | ||
const HandlerMetadata(this.route, this.method); | ||
} |
This file contains 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 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 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 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: kite_http | ||
description: A basic HTTP server library that support json & middleware | ||
version: 0.1.0 | ||
homepage: https://github.com/HarryET/kite | ||
repository: https://github.com/HarryET/kite | ||
issue_tracker: https://github.com/HarryET/kite | ||
version: 0.1.1 | ||
homepage: https://github.com/nyxx-discord/kite_http | ||
repository: https://github.com/nyxx-discord/kite_http | ||
issue_tracker: https://github.com/nyxx-discord/kite_http | ||
|
||
environment: | ||
sdk: '>=2.13.0 <3.0.0' |