Ready! API HAR library

Contains HAR models and writers

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.smartbear
Идентификатор

Идентификатор

har-java
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Ready! API HAR library
Contains HAR models and writers
Ссылка на сайт

Ссылка на сайт

https://github.com/SmartBear/har-java
Система контроля версий

Система контроля версий

https://github.com/SmartBear/har-java

Скачать har-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.smartbear/har-java/ -->
<dependency>
    <groupId>com.smartbear</groupId>
    <artifactId>har-java</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.smartbear/har-java/
implementation 'com.smartbear:har-java:1.0.0'
// https://jarcasting.com/artifacts/com.smartbear/har-java/
implementation ("com.smartbear:har-java:1.0.0")
'com.smartbear:har-java:jar:1.0.0'
<dependency org="com.smartbear" name="har-java" rev="1.0.0">
  <artifact name="har-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.smartbear', module='har-java', version='1.0.0')
)
libraryDependencies += "com.smartbear" % "har-java" % "1.0.0"
[com.smartbear/har-java "1.0.0"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
com.fasterxml.jackson.core : jackson-core jar 2.6.0
com.fasterxml.jackson.core : jackson-annotations jar 2.6.0
com.fasterxml.jackson.core : jackson-databind jar 2.6.0
org.apache.commons : commons-lang3 jar 3.4

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

HAR Java

A convenient java library for writing and reading HAR

Usage

HarStreamWriter allows to append entries over time. Once no more entry needs to be added closeHar() needs to be called explicitly.

// Create HarStreamWriter if you want to append entries over time
HarStreamWriter harWriter = new DefaultHarStreamWriter.Builder().withOutputFile(new File("log.har")).withUsePrettyPrint(true).build();

// Create the entry model with request/response and other mandatory fields
HarRequest harRequest = new HarRequestBuilder().withMethod("GET").withUrl("http://smartbear/resource").withHttpVersion("HTTP/1.1").build();
HarResponse harResponse = new HarResponseBuilder().build();

// Add the entry
harWriter.addEntry(new HarEntryBuilder().withRequest(harRequest).withResponse(harResponse).build());

// finally close the HAR
harWriter.closeHar();
com.smartbear

SmartBear Software

Think Bigger. Build Smarter.

Версии библиотеки

Версия
1.0.0