{"id":13712551,"url":"https://github.com/SmartBear/har-java","last_synced_at":"2025-05-06T22:31:16.445Z","repository":{"id":14551955,"uuid":"57394991","full_name":"SmartBear/har-java","owner":"SmartBear","description":"A Java library to read from har format and to write in har format","archived":false,"fork":false,"pushed_at":"2024-11-22T14:57:09.000Z","size":116,"stargazers_count":10,"open_issues_count":14,"forks_count":8,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-08T05:34:52.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartBear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-29T15:35:44.000Z","updated_at":"2024-02-20T02:26:17.000Z","dependencies_parsed_at":"2024-11-06T08:26:28.993Z","dependency_job_id":"a115caf0-ce22-4460-ae1d-fd4a66cc48cc","html_url":"https://github.com/SmartBear/har-java","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fhar-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fhar-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fhar-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartBear%2Fhar-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartBear","download_url":"https://codeload.github.com/SmartBear/har-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252779018,"owners_count":21802866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:01:19.759Z","updated_at":"2025-05-06T22:31:16.132Z","avatar_url":"https://github.com/SmartBear.png","language":"Java","readme":"# HAR Java\nA convenient java library for writing and reading HAR\n\n## Usage\n\n```HarStreamWriter``` allows to append entries over time. Once no more entry needs to be added ```closeHar()``` needs to be called explicitly. \n\n```java\n// Create HarStreamWriter if you want to append entries over time\nHarStreamWriter harWriter = new DefaultHarStreamWriter.Builder().withOutputFile(new File(\"log.har\")).withUsePrettyPrint(true).build();\n\n// Create the entry model with request/response and other mandatory fields\nHarRequest harRequest = new HarRequestBuilder().withMethod(\"GET\").withUrl(\"http://smartbear/resource\").withHttpVersion(\"HTTP/1.1\").build();\nHarResponse harResponse = new HarResponseBuilder().build();\n\n// Add the entry\nharWriter.addEntry(new HarEntryBuilder().withRequest(harRequest).withResponse(harResponse).build());\n\n// finally close the HAR\nharWriter.closeHar();\n\n```\n","funding_links":[],"categories":["By Technology"],"sub_categories":["Java"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSmartBear%2Fhar-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSmartBear%2Fhar-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSmartBear%2Fhar-java/lists"}