Skip to content

Commit

Permalink
Added stub for http_client package
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Mar 20, 2024
1 parent b2baddd commit 05c915c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
package: ['abstractions']
package: ['abstractions', 'http_client']

name: Analyze, format, and test (${{ matrix.package }})
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions packages/http_client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The `kiota_http_client` package implements a HTTP client for generated Kiota clients.

## Usage

Install the package in the generated project:

> For now, you can add the git repository as a dependency in your `pubspec.yaml` file:
>
> ```yaml
> dependencies:
> kiota_http_client:
> git:
> url: https://github.com/ricardoboss/dart_kiota_abstractions.git
> ref: main
> path: packages/http_client
> ```
```bash
dart pub add kiota_http_client
```
14 changes: 14 additions & 0 deletions packages/http_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: kiota_http_client
description: "Kiota http client for Dart"
version: 0.0.1-pre.1
homepage: https://github.com/ricardoboss/dart_kiota_abstractions/tree/main/packages/http_client
publish_to: 'none'

environment:
sdk: '>=3.2.6 <4.0.0'

dependencies:
kiota_abstractions:
path: ../abstractions
http: ^1.2.1
http_parser: ^4.0.2

0 comments on commit 05c915c

Please sign in to comment.