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

HAR support #30

Closed
bennycode opened this issue Jul 7, 2017 · 1 comment
Closed

HAR support #30

bennycode opened this issue Jul 7, 2017 · 1 comment

Comments

@bennycode
Copy link

I really like moxios and I was wondering if you are planning to support HAR files?

At the moment I am always writing definitions like:

moxios.stubRequest('http://localhost:8080/resource', {
  status: 200,
  responseText: {value: 'Hello'}
});

It would be great if I could load a HTTP Archive which would then define the status and responseText (among other values).

Example:

moxios.stubRequest('./har/response.har');

There is such a functionality provided by sinon-har-server. Maybe you can make use of that!?

@anilanar
Copy link

Kamino cloned this issue to anilanar/moxios

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

No branches or pull requests

3 participants