Skip to content
forked from jcabi/jcabi-http

About

Fluent Java HTTP client

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

413 Commits

Folders and files

Repository files navigation

Managed by Zerocracy DevOps By Rultor.com We recommend IntelliJ IDEA

Build Status PDD status Build status Coverage Status Javadoc

Maven Central Dependencies

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();
  }
}

Questions?

If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.

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.2+ and Java7+.

About

Fluent Java HTTP client

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages