mech2


License

License

Categories

Categories

H2 Data Databases
GroupId

GroupId

me.geso
ArtifactId

ArtifactId

mech2
Last Version

Last Version

0.6.0
Release Date

Release Date

Type

Type

jar
Description

Description

mech2
mech2
Project URL

Project URL

http://github.com/tokuhirom/mech2
Source Code Management

Source Code Management

https://github.com/tokuhirom/mech2/

Download mech2

How to add to project

<!-- https://jarcasting.com/artifacts/me.geso/mech2/ -->
<dependency>
    <groupId>me.geso</groupId>
    <artifactId>mech2</artifactId>
    <version>0.6.0</version>
</dependency>
// https://jarcasting.com/artifacts/me.geso/mech2/
implementation 'me.geso:mech2:0.6.0'
// https://jarcasting.com/artifacts/me.geso/mech2/
implementation ("me.geso:mech2:0.6.0")
'me.geso:mech2:jar:0.6.0'
<dependency org="me.geso" name="mech2" rev="0.6.0">
  <artifact name="mech2" type="jar" />
</dependency>
@Grapes(
@Grab(group='me.geso', module='mech2', version='0.6.0')
)
libraryDependencies += "me.geso" % "mech2" % "0.6.0"
[me.geso/mech2 "0.6.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.5.6
org.slf4j : slf4j-api jar 1.7.6
com.fasterxml.jackson.core : jackson-databind jar 2.9.6
org.apache.httpcomponents : httpmime jar 4.3.5

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.14.8

test (4)

Group / Artifact Type Version
junit : junit jar 4.11
org.eclipse.jetty : jetty-servlet jar 9.2.2.v20140723
org.slf4j : slf4j-simple jar 1.7.7
commons-fileupload : commons-fileupload jar 1.3.1

Project Modules

There are no modules declared in this project.

mech2

Build Status

SYNOPSIS

Mech2 mech2 = Mech2.builder().build();
Mech2WithBase wb = new Mech2WithBase(mech2, baseURI);
assertThat(
  wb.get("/")
    .execute()
    .getResponse()
    .getStatusLine()
    .getStatusCode(), is(200));
assertThat(
  wb.get("/")
    .execute()
    .getResponseBodyAsString(), is("HAHAHA"));

DESCRIPTION

mech2 is a HTTP client library like Faraday.

javadoc

You can see the javadoc on javadoc.io

http://www.javadoc.io/doc/me.geso/mech2/

FAQ

How do I disable redirect handling?

You can call Mech2#disableRedirectHandling() or Mech2WithBase#disableRedirectHandling().

AUTHORS

Tokuhiro Matsuno, [email protected]

LICENSE

The MIT License (MIT)
Copyright © 2014 Tokuhiro Matsuno, http://64p.org/ <[email protected]>

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 NONINFRINGEMENT. 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.

Versions

Version
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0
0.0.1