Skip to content
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

[PLAT-8049] Add bugsnag_flutter_http #115

Merged
merged 5 commits into from
Jun 7, 2022

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented May 23, 2022

Changeset

Adds the bugsnag_flutter_http package; a drop-in replacement for https://pub.dev/packages/http

Adds demonstration of usage to example app.

Usage

Import bugsnag_flutter_http instead of the http package, and use it in the same way:

import 'package: bugsnag_flutter_http/http.dart' as http;

var url = Uri.parse('https://example.com/whatsit/create');
var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
print('Response status: ${response.statusCode}');
print('Response body: ${response.body}');

print(await http.read(Uri.parse('https://example.com/foobar.txt')));

Testing

Includes unit tests.

Tested manually using example app.

@nickdowell nickdowell requested a review from lemnik May 23, 2022 09:42
@nickdowell nickdowell force-pushed the nickdowell/network-breadcrumbs-http branch from 8965876 to 7b74d30 Compare May 23, 2022 10:10
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lemnik lemnik merged commit fbc1785 into next Jun 7, 2022
@lemnik lemnik deleted the nickdowell/network-breadcrumbs-http branch June 7, 2022 08:42
@lemnik lemnik mentioned this pull request Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants