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

CP-2964 Add ability to "record" HTTP requests and WebSocket connections #240

Open
evanweible-wf opened this issue Nov 15, 2016 · 0 comments

Comments

@evanweible-wf
Copy link
Contributor

Example usage:

final recording = MockTransports.http.record();

final uri = Uri.parse('http://httpstat.us/200');
await Http.get(uri);
await Http.post(uri);

recording.stop();

expect(recording.requests.first.method, equals('GET'));
expect(recording.requests.first.uri, equals(uri));

expect(recording.requests.last.method, equals('POST'));
expect(recording.requests.last.uri, equals(uri));
@evanweible-wf evanweible-wf added this to the 3.1.0 milestone Nov 15, 2016
@rmconsole2-wf rmconsole2-wf changed the title Add ability to "record" HTTP requests and WebSocket connections CP-2964 Add ability to "record" HTTP requests and WebSocket connections Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant