GithubHelp home page GithubHelp logo

isabella232 / hurl-jvm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orange-opensource/hurl-jvm

0.0 0.0 0.0 492 KB

Hurl client for the JVM platform

Home Page: https://hurl.dev

License: Other

Shell 0.63% Kotlin 94.73% HTML 0.34% Python 4.09% Mustache 0.20%

hurl-jvm's Introduction

Hurl JVM

Introduction

Hurl JVM is a Hurl client for the JVM platform, written in Kotlin. Hurl JVM is available as a standalone jar, launchable in a shell (ex: java -jar hurl.jar test.hurl). Hurl JVM try to have the same functionality as the official Hurl client.

deploy status documentation

CLI Usage

usage: java -jar hurl.jar file
    --color                              Colorize output (not yet
                                         implemented)
    --compressed                         Request a compressed response
                                         using one of the algorithms br,
                                         gzip, deflate and automatically
                                         decompress the content
    --connect-timeout <SECONDS>          Maximum time in seconds that you
                                         allow Hurl’s connection to take.
                                         See also -m, --max-time option.
    --file-root <file>                   Specify the root directory for
                                         file inclusions
 -h,--help                               This help text
 -i,--include                            Include HTTP headers in the
                                         output
 -k,--insecure                           Allow connections to SSL sites
                                         without certs
 -L,--location                           Follow redirect
 -m,--max-time <SECONDS>                 Maximum time in seconds that you
                                         allow a request/response to take.
                                         This is the standard timeout.
                                         See also --connect-timeout
                                         option.
    --no-color                           Do not colorize output (not yet
                                         implemented)
 -o,--output <file>                      Write output to <file> instead of
                                         stdout
    --to-entry <entry-number>            Execute Hurl file to
                                         <entry-number> (starting at 1).
                                         Ignore the remaining of the file
 -u,--user <user:password>               Specify the user name and
                                         password to use for server
                                         authentication (currently only
                                         Basic Authentication is
                                         supported)
 -V,--version                            Show version number and quit
 -v,--verbose                            Make the operation more talkative
    --variable <name=value>              Define variable (example:
                                         --variable answer=42)
 -x,--proxy <[protocol://]host[:port]>   Use proxy on given port, only
                                         http proxy is supported

Build

Hurl JVM need JDK 8 to be build against, and use Gradle.

To build the project:

./gradlew build

To test and produce a coverage report:

./gradlew test
./gradlew hurl-core:jacocoTestReport

Source Code Structure

  • hurl-core: core modules, can be used as a library for building app using Hurl.
  • hurl-cli: standalone CLI application for Hurl
  • hurl-fmt: standalone CLI application for formatting Hurl files

Importing Hurl JVM modules in a Gradle Project

Gradle Groovy DSL

implementation 'com.orange.ccmd:hurl-core:1.0.40'
implementation 'com.orange.ccmd:hurl:1.0.40'
implementation 'com.orange.ccmd:hurlfmt:1.0.40'

Gradle Kotlin DSL

implementation("com.orange.ccmd:hurl-core:1.0.40")
implementation("com.orange.ccmd:hurl:1.0.40")
implementation("com.orange.ccmd:hurlfmt:1.0.40")

Apache Maven

<dependency>
  <groupId>com.orange.ccmd</groupId>
  <artifactId>hurl-core</artifactId>
  <version>1.0.40</version>
</dependency>
<dependency>
  <groupId>com.orange.ccmd</groupId>
  <artifactId>hurl</artifactId>
  <version>1.0.40</version>
</dependency>
<dependency>
  <groupId>com.orange.ccmd</groupId>
  <artifactId>hurlfmt</artifactId>
  <version>1.0.40</version>
</dependency>

hurl-jvm's People

Contributors

jcamiel avatar

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.