目录
目录README.md

HARParser

Build Status SPM

A parser for .har files. To use it in you project add the dependency to your Package.swift file:

import PackageDescription

let package = Package(
    name: "My awesome CLI tool"
    dependencies: [
        .package(
            url: "https://github.com/JanGorman/HARParser",
            from: "1.0.0"
        )
    ]
)

Usage

Initialise an instance of the parser with the contents of a .har file as Data:

import HARParser

func parse() throws {
  let data = Data() // Load the file into memory
  let parser = HARParser(data: data)
  // After parsing you can access the different fields of the archive
  let har = try parser.parse()
}

Licence

Table is released under the MIT license. See LICENSE for details.

关于
39.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号