Skip to content

shusen/jcabi-http

This branch is 33 commits behind jcabi/jcabi-http:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 21, 2025
Jan 21, 2025
Jan 29, 2018
Jun 22, 2015
May 29, 2015
Dec 22, 2016
Sep 24, 2022
Jul 19, 2022
Jul 19, 2022
Jan 21, 2025
Sep 22, 2022

Repository files navigation

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

mvn PDD status Maintainability Maven Central Javadoc

codecov Hits-of-Code Lines of code License

More details are here: http.jcabi.com.

Also, read this blog post: Fluent Java HTTP Client.

import com.jcabi.http.Request;
import com.jcabi.http.request.JdkRequest;
import com.jcabi.http.response.RestResponse;
public class Main {
  public static void main(String[] args) {
    String html = new JdkRequest("https://www.google.com/test")
      .uri().path("/users").queryParam("id", 333).back()
      .method(Request.GET)
      .header(HttpHeaders.ACCEPT, MediaType.TEXT_HTML)
      .fetch()
      .as(RestResponse.class)
      .assertStatus(HttpURLConnection.HTTP_OK)
      .body();
  }
}

How to contribute?

Fork the repository, make changes, submit a pull request. We promise to review your changes same day and apply to the master branch, if they look correct.

Please run Maven build before submitting a pull request:

$ mvn clean install -Pqulice

Make sure you're using Maven 3.6+ and Java 8+.

About

Fluent Java HTTP client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%