All Projects → yegor256 → cactoos-http

yegor256 / cactoos-http

Licence: MIT license
Object-Oriented HTTP Client

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to cactoos-http

Low Level Design Primer
Dedicated Resources for the Low-Level System Design. Learn how to design and implement large-scale systems. Prep for the system design interview.
Stars: ✭ 2,706 (+7213.51%)
Mutual labels:  object-oriented-programming
Swan
Topology Optimization Laboratory
Stars: ✭ 55 (+48.65%)
Mutual labels:  object-oriented-programming
Awesome-Software-Engineering-Interview
No description or website provided.
Stars: ✭ 409 (+1005.41%)
Mutual labels:  object-oriented-programming
cactoos-matchers
Elegant object-oriented hamcrest matchers
Stars: ✭ 30 (-18.92%)
Mutual labels:  elegantobjects
java-wegweiser
🔭 Ein wachsender Wegweiser für die Grundlagen der Java-Programmierung
Stars: ✭ 15 (-59.46%)
Mutual labels:  object-oriented-programming
LLD
Curated Collection of all Low level design Questions and implementation asked in major Tech companies , Get yourself prepared for the LLD round and ace the interview.
Stars: ✭ 608 (+1543.24%)
Mutual labels:  object-oriented-programming
class-java-basico
Curso básico de Java (WIP)
Stars: ✭ 201 (+443.24%)
Mutual labels:  object-oriented-programming
advanced-web-developer-bootcamp-notes-examples-and-exercises
Examples and Exercises compiled. From the awesome Advanced Web Developer Bootcamp
Stars: ✭ 24 (-35.14%)
Mutual labels:  object-oriented-programming
peon
Python "Elegant Object" Naive linter.
Stars: ✭ 31 (-16.22%)
Mutual labels:  elegantobjects
kaop
Advanced OOP Library with createClass, inheritance, providers, injectors, advices which enables handy Inversion of Control techniques
Stars: ✭ 40 (+8.11%)
Mutual labels:  object-oriented-programming
ooprogramming
Intermediate course introducing Object Oriented Programming (OOP) principles applied to the Java language. Recommend to learners with previous experience.
Stars: ✭ 50 (+35.14%)
Mutual labels:  object-oriented-programming
oop
Spare material and code bites from Object Oriented Programming @ Politecnico di Torino
Stars: ✭ 19 (-48.65%)
Mutual labels:  object-oriented-programming
algorithm-bootcamp-java
Teaching materials for Algorithm Bootcamp: Object-Oriented Programming.
Stars: ✭ 17 (-54.05%)
Mutual labels:  object-oriented-programming
Scala
Scala 2 compiler and standard library. For bugs, see scala/bug
Stars: ✭ 13,573 (+36583.78%)
Mutual labels:  object-oriented-programming
niqlow
design, solve and estimate discrete dynamic programs.
Stars: ✭ 16 (-56.76%)
Mutual labels:  object-oriented-programming
Fprime
F' - A flight software and embedded systems framework
Stars: ✭ 8,642 (+23256.76%)
Mutual labels:  object-oriented-programming
Sushi-3.1
A GUI framework, all wrapped in rice and seaweed for extra flavor.
Stars: ✭ 25 (-32.43%)
Mutual labels:  object-oriented-programming
FUPRAL
Fortran OO implementation of a generic container using an unlimited polymorphic class. Implementation of a resizable container array and a double linked list.
Stars: ✭ 18 (-51.35%)
Mutual labels:  object-oriented-programming
java-notes
Complete Java Note for colleges in Nepal.
Stars: ✭ 30 (-18.92%)
Mutual labels:  object-oriented-programming
2D CARFIVE
2D Cartesian Quadtree Adaptive Mesh Refinement (AMR) for multiphase Five Equations Model
Stars: ✭ 23 (-37.84%)
Mutual labels:  object-oriented-programming

Donate via Zerocracy

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

Build Status Javadoc PDD status Maven Central License

Test Coverage SonarQube

Cactoos-HTTP is a experimental HTTP client, fully object-oriented.

These are the design principles behind Cactoos-HTTP.

All you need is this:

<dependency>
  <groupId>org.cactoos</groupId>
  <artifactId>cactoos-http</artifactId>
  <version><!-- Get it here: https://github.com/yegor256/cactoos-http/releases --></version>
</dependency>

Java version required: 1.8+.

StackOverflow tag is cactoos.

We are well aware of competitors (most likely they are more powerful than our client, but less object-oriented):

How to use

Ht stands for HTTP. We are not using Http just in order to look a bit different than all other libraries.

To make a simple HTTP GET request and read its body:

String body = new TextOf(
  new HtBody(
    new HtResponse(
      "http://www.google.com"
    )
  )
).asString();

This one sends a PUT request with a multi-part form and reads back some headers and the response code (mind the usage of StickyInput):

Input head = new StickyInput(
  new HtHead(
    new HtResponse(
      new HtWire("www.example.com"),
      new Joined(
        "\n\r",
        "PUT / HTTP/1.1",
        "Host: www.example.com"
      ).asString()
    )
  )
);
int status = new HtStatus(head).intValue();
Map<String, String> headers = new HtHeaders(head);

Questions

Ask your questions related to cactoos library on Stackoverflow with cactoos tag.

How to contribute?

Just fork the repo and send us a pull request.

Make sure your branch builds without any warnings/issues:

mvn clean install -Pqulice

License (MIT)

Copyright (c) 2018 Yegor Bugayenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].