1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-27 04:22:07 +03:00
Commit Graph

31 Commits

Author SHA1 Message Date
Jake Wharton
34049c1c0f [maven-release-plugin] prepare release parent-1.0.2 2013-05-11 20:56:12 -07:00
jwilson
5345c1ab20 Hide internal from Javadocs 2013-05-07 11:20:02 -04:00
Jake Wharton
d49ddf3414 [maven-release-plugin] prepare for next development iteration 2013-05-06 09:19:55 -07:00
Jake Wharton
66544feab6 [maven-release-plugin] prepare release parent-1.0.1 2013-05-06 09:19:41 -07:00
Jake Wharton
bd2cac58f3 [maven-release-plugin] prepare for next development iteration 2013-05-06 07:01:00 -07:00
Jake Wharton
d95ecff542 [maven-release-plugin] prepare release parent-1.0.0 2013-05-06 07:00:47 -07:00
Jake Wharton
8f988a303b Auto-version submodules. 2013-05-06 06:59:26 -07:00
jwilson
562522f7c7 Use the latest mockwebserver 2013-05-05 13:19:03 -04:00
Jake Wharton
59b1c1dc52 Pom version updates. Drop unused dependencies. 2013-05-05 00:49:08 -07:00
Jake Wharton
d60c084b99 Add Apache HttpClient implementation which maps to OkHttp.
Refs #17.
2013-03-26 13:27:46 -04:00
Jake Wharton
7ccbf48838 Move library into a module. Introduce sample module with simple GitHub client. 2013-03-25 20:04:51 -07:00
Marcelo Cortes
fcd40ec711 increased version to 1.0 2013-02-01 14:58:28 -05:00
jwilson
3a0874cb22 Introduce MockSpdyServer.
This is like MockWebServer, but it speaks SPDY behind the scenes
instead of HTTP. The goal with this change is to make it very easy
to test interactions between SPDY and HTTP features like cookies,
fault tolerance and caching.
2013-01-22 13:38:38 -05:00
jwilson
dca5d83027 Upgrade to JUnit 4.
Primary motivation is to gain access to @Ignore, for some
tests that haven't yet been written, or that don't work on
the RI (due to RI bugs).
2012-12-29 11:10:13 -07:00
jwilson
c9d183636d Bump the version number for backwards-incompatible changes. 2012-12-17 19:30:00 -05:00
jwilson
50999cceb5 Move out of the libcore package.
To promote the code into AOSP, we'll keep this package as-is
and do the jarjar in Android instead.
2012-12-15 16:55:10 -05:00
Jesse Wilson
9a1da9b420 New API to break platform-specific dependencies.
In particular:
 - Don't require OkHttp to depend on Jetty's non-boot package for
   Android. This was causing ugly, confidence-smashing dalvik
   errors in Android apps.
 - Don't prevent HTTP on Java6 just because SPDY isn't available.

This uses gross reflection and dynamic proxies! That's sad, but
it's encapsulated so users won't have to know it exists.
2012-11-13 23:12:12 -05:00
Jake Wharton
51c7b6cad2 Write checkstyle to stdout. 2012-10-16 21:46:26 -07:00
Jesse Wilson
5aa2456a14 Fix TLS requiresTunnel which was being computed incorrectly.
We were only returning 'true' once we were already in a tunnel.
This was bogus. In theory a TLS tunnel sending extra data could
be corrupted due to this bug.

Also migrate one of the TLS tunnel tests to use SslContextBuilder
instead of TestSSLContext.
2012-09-20 16:01:17 -04:00
Jesse Wilson
3ff6ca140d Uncomment more HTTPS tests.
Also:
 - bump mockwebserver to current.
 - create a uniform API for creating connections
2012-08-01 14:41:29 -04:00
Jesse Wilson
33a0c620e1 Use bouncy castle to generate certs for TLS.
Because there are no platform APIs to generate certificates,
this needs a third party library (bouncy castle) to do the
heavy lifting.

Each target platform has its own built-in crypto library:
 - The JVM has its own internal crypto library. It uses
   key stores like "JCA".
 - Android has its own internal crypto library that's
   based on bouncy castle. It is repackaged in com.android
   and is not used by this code.

With this change, okhttp brings its own copy of bouncy castle
for cert generation. Once the certificate is generated we're
done with bouncy castle, and use the platform libraries for TLS.
This approach allows us to use one codebase on either platform.
2012-08-01 12:50:04 -04:00
Jake Wharton
08b1d7f320 General project clean-up and tweaks.
* Add checkstyle and correct anything that failed.
 * Expand README.md to have more info for the upcoming release.
 * Resolve plugin warnings in pom.xml.
2012-07-28 00:08:05 -07:00
Jake Wharton
28518d748c Merge pull request #8 from square/jwilson/pool
Don't use jarjar to strip unused classes.
2012-07-24 18:55:43 -07:00
Jesse Wilson
f984c3940d Don't use jarjar to strip unused classes.
It was stripping required classes that were only needed
moved classes. We don't have any unused classes so this is
a wasted step anyway.
2012-07-24 18:53:34 -07:00
Jake Wharton
0a1d49b221 Remove duplicate plugin definitions.
Sources and javadoc artifacts are configured by the parent pom.
2012-07-23 15:39:43 -07:00
Jesse Wilson
ea19431b81 Use Square's regular groupId for okhttp. 2012-07-23 18:14:06 -04:00
Jesse Wilson
53ef23eae2 Don't sign artifacts in the default configuration. 2012-07-23 12:27:30 -04:00
Patrick Forhan
7781c0702e Merge pull request #3 from square/jwilson/java7
Enforce javac version 1.7 or better.
2012-07-23 07:57:26 -07:00
Jesse Wilson
fc01d7e54d Enforce javac version 1.7 or better.
We can't require 1.7 as a target or source language option
as that would break dx.
2012-07-23 10:56:32 -04:00
Jesse Wilson
0ea4c8fc13 Give the in-progress code a SNAPSHOT version number. 2012-07-23 10:16:56 -04:00
Jesse Wilson
ea63463c2f Initial import.
This is a fork of okhttp from http://code.google.com/p/okhttp.
I'm moving it to Github since that's where my code reviewers
are. I've renamed the core package from com.google.okhttp to
com.squareup.okhttp because Square is where I expect ongoing
development of this project to take place.

All code in this project is subject to be contributed upstream
to AOSP. In particular, all code in the libcore package is
derived from AOSP and intended to be contributed back to AOSP
on an ongoing basis.
2012-07-23 10:02:28 -04:00