Skip to content
/ harharhar Public

load har files then intercept xmlhttprequests to use the pre-recorded traffic

License

Notifications You must be signed in to change notification settings

thtr/harharhar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harharhar

A drop-in data-mocking utility for single-page web apps.

Currently limited to XMLHttpRequests loading har files (load the file then intercept XMLHttpRequests to use the pre-recorded traffic). Planning websocket support, etc as time permits. Please report any issues, especially in current browsers!

basic use

  • open the chrome dev tools and visit + use the target project
  • select the dev tools Network tab
  • right-click any network item and select the context-menu item Save as HAR with Content
  • load the harharhar.js file into the project
  • load the saved har file with something like: Mock('path/to/har');
  • matching XMLHttpRequests should now have the previously loaded content

HAR file info

About

load har files then intercept xmlhttprequests to use the pre-recorded traffic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published