Giter Site home page Giter Site logo

mandrean / har-rs Goto Github PK

View Code? Open in Web Editor NEW
40.0 2.0 15.0 63 KB

A HTTP Archive format (HAR) serialization & deserialization library, written in Rust.

License: MIT License

Rust 100.00%
har http-archive-format rust rust-library charles-proxy serialization deserialization serde serde-json serde-serialization

har-rs's People

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

Watchers

 avatar  avatar

har-rs's Issues

charles_status meaning?

Hi there,

Nice crate, thanks for writing! I'm just picking it up for a project of mine but I'm unsure about one thing. What's the meaning of the charles_status field on Response? I'm assuming this is related to Charles - it feels strange to have a field in a generic library crate that's tied to a specific piece of software like that so just wanted to understand. Do you have a specific RFC that describes the format you are coding to? The link on the README goes to wikipedia, which links to an RFC that says 'DO NOT USE' at the top but I have no idea what the reference should be otherwise.

Thanks!

Fix release/crate publishing

Currently, for some reason, the CI/CD fails when trying to publish a new release/crate.

I'm noticing some discrepancies between using mandrean/semantic-rs locally, and the exact same version of it remotely.

For example, running mandrean/semantic-rs locally @ 10cc3d2 results in a bump to 0.6.1, but in the CI it becomes 0.7.0.

Needs further investigation.

Show original line number in parse error

Serde parse error is very vague with errors like the following:

error: missing field `headersSize` at line 1 column 1

or

error: invalid type: boolean `false`, expected a string at line 1 column 1

Ideally serde would send back the real line number and possibly column.

invalid type: floating point

error: invalid type: floating point 264.50300000033167, expected i64 at line 1 column 1

har file:

"time":` 264.50300000033167,

error: Error(
    Yaml(
        Message(
            "invalid type: floating point `264.50300000033167`, expected i64",
            Some(
                Pos {
                    marker: Marker {
                        index: 0,
                        line: 1,
                        col: 0,
                    },
                    path: ".",
                },
            ),
        ),
    ),
    State {
        next_error: None,
        backtrace: InternalBacktrace {
            backtrace: None,
        },
    },
)

Fails to read har generate by Firefox

Reading the following .har file fails with the error message error serializing YAML, even though the file is not a YAML file.

I believe this error is specific to Firefox, as it does not appear when generating .har files with chromium based browser.

Small example code:

fn main() {
    match har::from_path("path of input") {
        Ok(spec) => {}
        Err(err) => {
            println!("Failed to read file: {}", err);
        }
    }
}

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.