Giter Club home page Giter Club logo

har's Introduction

HAR

Ruby library to work with and view HTTP archives. This includes harviewer, which can be launched through the "har" command.

Coverage Status Code Climate Build Status

Install

gem install har

Usage

HAR::Archive.from_string(json) #=> #<Har::Archive:0x5e7cac>
HAR::Archive.from_file(path)   #=> #<Har::Archive:0x5e7cac>

Or launch a local harviewer the command line:

har /path/to/some.har

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2011-2014 Jari Bakken. See LICENSE for details.

har's People

Contributors

jarib avatar jdcc avatar mbeasley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

har's Issues

turn off the "Validate data before processing?"

Hello,

I am using this to gem to process my .har file. But "Validate data before processing?" checkbox is checked everytime and it causes my har viewer to fail. I tried to change the checked value to false in viewer, but no luck. Do we have any switch to turn off the validation?

Add ability to filter a page's entries by time

It'd be useful to be able filter a set of entries on a page to just the entries that responded before a given time. Note that there is a difference between the entry's start time and the actual response time and this would be for filtering based on the latter.

Uncaught SyntaxError: Identifier 'Pie' has already been declared

OS: OSX Version 10.11.5
Browser: Chrome Version 51.0.2704.103 (64-bit)

Repro Steps:

  1. gem install har
  2. har <my-har-file>.har
  3. Open http://localhost:9292/viewer/index.html?path=<my-har-file>.har

Expected
To see HAR data rendered

Actual

  • Blank page
  • Console output of Uncaught SyntaxError: Identifier 'Pie' has already been declared

Allow custom page timings

Custom fields are permitted by the HAR spec. Of particular use is custom page timings. The gem should be able to read those custom timings in a generic and safe way (that doesn't collide with standard timings).

Timings may be expressed as numbers, not just integers

It seems that the HTTP Archive spec doesn't require that timings be integers, just "numbers". The reason this seems worth mentioning is that Chrome's "copy to har" creates a HAR with timings expressed as floating point numbers, and it seems worthwhile to support the format. Would this just be a matter of changing the jschematic schemas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.