Meta tags:
description= A meticulous HTTP client for the JVM, Android, and GraalVM. - lysine-dev/okhttp;
Headings (most frequently used words):
navigation, repository, about, and, files, releases, footer, topics, resources, contributing, stars, watchers, forks, okhttp, menu, latest, commit, history, folders, well, behaved, user, agent, get, url, post, to, server, requirements, maven, jvm, projects, mockwebserver, graalvm, native, image, java, modules, license, used, by, contributors, languages,
Text of the page (most frequently used words):
#okhttp (70), and (35), the (34), for (22), okhttp3 (22), http (19), github (15), #license (14), with (14), you (13), android (13), java (12), build (11), mockwebserver (11), com (10), request (10), not (9), security (9), client (9), your (9), squareup (9), gradle (9), version (8), tls (8), dependency (8), artifactid (8), groupid (8), support (8), string (8), response (8), url (8), tests (8), this (7), contributing (7), graalvm (7), platform (7), testing (7), maven (7), bom (7), test (7), that (6), repository (6), kotlin (6), jvm (6), okcurl (6), available (6), rfc (6), code (6), apache (5), readme (5), mockwebserver3 (5), logging (5), internal (5), get (5), module (5), gradlew (5), new (5), features (5), such (5), implementation (5), are (5), body (5), json (5), all (5), changelog (5), navigation (4), forks (4), stars (4), properties (4), lysine (4), dev (4), about (4), use (4), see (4), sse (4), api (4), native (4), full (4), library (4), more (4), latest (4), interceptor (4), projects (4), will (4), supports (4), okhttpclient (4), requests (4), modern (4), settings (4), kts (4), signed (4), copilot (4), docs (3), used (3), resources (3), meticulous (3), under (3), may (3), junit5 (3), junit4 (3), urlconnection (3), net (3), cookiejar (3), dnsoverhttps (3), coroutines (3), brotli (3), public (3), modules (3), which (3), should (3), apps (3), https (3), image (3), release (3), dependencies (3), must (3), its (3), date (3), conscrypt (3), libraries (3), post (3), data (3), source (3), server (3), run (3), network (3), documentation (3), files (3), commit (3), actions (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), developers (3), customer (3), enterprise (3), grade (3), can (2), share (2), community (2), status (2), footer (2), inc (2), releases (2), report (2), watching (2), watchers (2), custom (2), activity (2), topics (2), file (2), org (2), required (2), distributed (2), without (2), any (2), limitations (2), package (2), does (2), place (2), builds (2), attempt (2), example (2), work (2), automatically (2), using (2), featured (2), developed (2), being (2), central (2), clients (2), dependencymanagement (2), scope (2), type (2), project (2), define (2), artifacts (2), also (2), keep (2), compatibility (2), has (2), history (2), change (2), level (2), platforms (2), uses (2), first (2), browsers (2), problems (2), connectivity (2), both (2), application (2), return (2), execute (2), newcall (2), try (2), builder (2), requestbody (2), ioexception (2), throws (2), mediatype (2), program (2), service (2), avoids (2), when (2), invalid (2), follows (2), user (2), common (2), events (2), caching (2), agent (2), calls (2), connection (2), addresses (2), connect (2), services (2), items (2), test_docs (2), mkdocs (2), yml (2), bat (2), deploy_website (2), txt (2), bug (2), bounty (2), gitmodules (2), gitignore (2), gitattributes (2), editorconfig (2), samples (2), regression (2), zstd (2), osgi (2), idna (2), mapping (2), table (2), hpacktests (2), deprecated (2), store (2), fuzzing (2), logic (2), app (2), vscode (2), junit (2), idea (2), devcontainer (2), last (2), message (2), name (2), 546 (2), commits (2), menu (2), star (2), insights (2), 102 (2), universe (2), training (2), integrations (2), stories (2), center (2), learn (2), business (2), fixes (2), products (2), secret (2), perform, action, time, personal, information, manage, cookies, contact, privacy, terms, 2026, languages, contributors, copyright, 2019, square, licensed, except, compliance, obtain, copy, www, licenses, unless, applicable, law, agreed, writing, software, basis, warranties, conditions, kind, either, express, implied, specific, language, governing, permissions, stable, based, list, defined, error, visible, declared, export, bigco, sdk, fail, packages, implements, nativeimage, graal, httpbin, building, images, firstly, basic, standalone, actively, might, find, needs, outgrow, mockserver, testimplementation, includes, remove, after, updated, pom, import, published, multiplatform, while, handles, select, between, artifact, empty, have, help, sure, bill, materials, snapshot, rules, proguard, our, log, branch, these, lack, newprovider, insertproviderat, built, integrates, provider, boringssl, highly, recommend, auto, updating, web, staying, current, important, defense, against, potential, dynamic, ecosystem, adjust, improve, track, depends, high, performance, small, strong, backward, standard, okio, disable, initializer, manifest, then, responsible, calling, oncreate, initialize, applicationcontext, androidx, startup, works, requirements, further, examples, recipes, page, create, final, static, posts, downloads, prints, contents, cache, interface, alternative, implementations, allow, principled, overly, configurable, especially, configuration, workaround, buggy, scenarios, contradict, relevant, other, exist, fill, gap, allowing, extensive, customisation, including, potentially, where, spec, ambiguous, agents, popular, sent, websockets, 6455, 9113, 9112, 9111, semantics, 9110, specifications, well, behaved, easy, designed, fluent, builders, immutability, synchronous, blocking, async, callbacks, perseveres, troublesome, silently, recover, from, multiple, alternate, fails, necessary, ipv4, ipv6, hosted, redundant, centers, alpn, certificate, pinning, configured, fall, back, broad, completely, repeat, transparent, gzip, shrinks, download, sizes, pooling, reduces, latency, isn, allows, same, host, socket, efficient, default, way, applications, how, exchange, media, doing, efficiently, makes, stuff, load, faster, saves, bandwidth, apis, website, view, folders, open, tags, branches, main, fork, notification, notifications, pull, issues, dismiss, alert, switched, accounts, out, appearance, search, pricing, event, talks, workshops, what, next, partners, company, forum, webinars, blog, resource, premium, advanced, add, ons, trust, why, evaluate, industries, government, manufacturing, financial, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, across, one, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, tasks, automated, hosting, review, collaboration, skip, content,
Text of the page (random words):
github lysine dev okhttp a meticulous http client for the jvm android and graalvm github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message lysine dev okhttp repository navigation code issues 102 102 pull requests 29 29 actions security and quality insights more items okhttp public notifications you must be signed in to change notification settings fork 9 3k 9 3k star 47 1k 47 1k you must be signed in to star a repository about a meticulous http client for the jvm android and graalvm lysine dev okhttp topics android graalvm java kotlin resources readme apache 2 0 license contributing contributing activity custom properties stars 47 1k stars watchers 1 6k watching forks 9 3k forks report repository main branches tags go to file code open more actions menu latest commit history 6 546 commits 6 546 commits folders and files name name last commit message last commit date devcontainer devcontainer github github idea idea junit run junit run vscode vscode android test app android test app android test android test build logic build logic docs docs fuzzing fuzzing gradle gradle kotlin js store kotlin js store maven tests maven tests mockwebserver deprecated mockwebserver deprecated mockwebserver junit4 mockwebserver junit4 mockwebserver junit5 mockwebserver junit5 mockwebserver mockwebserver module tests module tests native image tests native image tests okcurl okcurl okhttp bom okhttp bom okhttp brotli okhttp brotli okhttp coroutines okhttp coroutines okhttp dnsoverhttps okhttp dnsoverhttps okhttp hpacktests okhttp hpacktests okhttp idna mapping table okhttp idna mapping table okhttp java net cookiejar okhttp java net cookiejar okhttp logging interceptor okhttp logging interceptor okhttp osgi tests okhttp osgi tests okhttp sse okhttp sse okhttp testing support okhttp testing support okhttp tls okhttp tls okhttp urlconnection okhttp urlconnection okhttp zstd okhttp zstd okhttp okhttp regression test regression test samples samples editorconfig editorconfig gitattributes gitattributes gitignore gitignore gitmodules gitmodules bug bounty md bug bounty md changelog md changelog md contributing md contributing md license txt license txt readme md readme md build gradle kts build gradle kts deploy_website sh deploy_website sh gradle properties gradle properties gradlew gradlew gradlew bat gradlew bat mkdocs yml mkdocs yml settings gradle kts settings gradle kts test_docs sh test_docs sh view all files repository files navigation readme contributing apache 2 0 license more items okhttp see the project website for documentation and apis http is the way modern applications network it s how we exchange data media doing http efficiently makes your stuff load faster and saves bandwidth okhttp is an http client that s efficient by default http 2 support allows all requests to the same host to share a socket connection pooling reduces request latency if http 2 isn t available transparent gzip shrinks download sizes response caching avoids the network completely for repeat requests okhttp perseveres when the network is troublesome it will silently recover from common connection problems if your service has multiple ip addresses okhttp will attempt alternate addresses if the first connect fails this is necessary for ipv4 ipv6 and services hosted in redundant data centers okhttp supports modern tls features tls 1 3 alpn certificate pinning it can be configured to fall back for broad connectivity using okhttp is easy its request response api is designed with fluent builders and immutability it supports both synchronous blocking calls and async calls with callbacks a well behaved user agent okhttp follows modern http specifications such as http semantics rfc 9110 http caching rfc 9111 http 1 1 rfc 9112 http 2 rfc 9113 websockets rfc 6455 sse server sent events where the spec is ambiguous okhttp follows modern user agents such as popular browsers or common http libraries okhttp is principled and avoids being overly configurable especially when such configuration is to workaround a buggy server test invalid scenarios or that contradict the relevant rfc other http libraries exist that fill that gap allowing extensive customisation including potentially invalid requests example limitations does not allow get with a body cache is not an interface with alternative implementations get a url this program downloads a url and prints its contents as a string full source okhttpclient client new okhttpclient string run string url throws ioexception request request new request builder url url build try response response client newcall request execute return response body string post to a server this program posts data to a service full source public static final mediatype json mediatype get application json okhttpclient client new okhttpclient string post string url string json throws ioexception requestbody body requestbody create json json request request new request builder url url post body build try response response client newcall request execute return response body string further examples are on the okhttp recipes page requirements okhttp works on android 5 0 api level 21 and java 8 on android okhttp uses androidx startup if you disable the initializer in the manifest then apps are responsible for calling okhttp initialize applicationcontext in application oncreate okhttp depends on okio for high performance i o and the kotlin standard library both are small libraries with strong backward compatibility we highly recommend you keep okhttp up to date as with auto updating web browsers staying current with https clients is an important defense against potential security problems we track the dynamic tls ecosystem and adjust okhttp to improve connectivity and security okhttp uses your platform s built in tls implementation on java platforms okhttp also supports conscrypt which integrates boringssl with java okhttp will use conscrypt if it is the first security provider security insertproviderat conscrypt newprovider 1 the okhttp 3 12 x branch supports android 2 3 api level 9 and java 7 these platforms lack support for tls 1 2 and should not be used releases our change log has release history the latest release is available on maven central implementation com squareup okhttp3 okhttp 5 5 1 snapshot builds are available r8 and proguard rules are available also we have a bill of materials bom available to help you keep okhttp artifacts up to date and be sure about version compatibility dependencies define a bom and its version implementation platform com squareup okhttp3 okhttp bom 5 5 1 define any required okhttp artifacts without version implementation com squareup okhttp3 okhttp implementation com squareup okhttp3 logging interceptor maven and jvm projects okhttp is published as a kotlin multiplatform project while gradle handles this automatically maven projects must select between okhttp jvm and okhttp android the okhttp artifact will be empty in maven projects dependencymanagement dependencies dependency groupid com squareup okhttp3 groupid artifactid okhttp bom artifactid version 5 2 0 version type pom type scope import scope dependency dependencies dependencymanagement dependency groupid com squareup okhttp3 groupid artifactid okhttp jvm artifactid remove after okhttp 5 2 0 with updated bom version 5 1 0 version dependency dependency groupid com squareup okhttp3 groupid artifactid mockwebserver3 artifactid dependency dependency groupid com squareup okhttp3 groupid artifactid logging interceptor artifactid dependency mockwebserver okhttp includes a library for testing http https and http 2 clients the latest release is available on maven central testimplementation com squareup okhttp3 mockwebserver3 5 5 1 mockwebserver is used for firstly for internal testing and for basic testing of apps using okhttp client it is not a full featured http testing library that is developed standalone it is not being actively developed for new features as such you might find your needs outgrow mockwebserver and you may which to use a more full featured testing library such as mockserver graalvm native image building your native images with graalvm should work automatically see the okcurl module for an example build gradlew okcurl nativeimage okcurl build graal okcurl https httpbin org get java modules okhttp 5 2 implements java 9 modules with this in place java builds should fail if apps attempt to use internal packages error package okhttp3 internal platform is not visible okhttp3 internal platform platform get package okhttp3 internal platform is declared in module okhttp3 which does not export it to module com bigco sdk the stable public api is based on the list of defined modules okhttp3 okhttp3 brotli okhttp3 coroutines okhttp3 dnsoverhttps okhttp3 java net cookiejar okhttp3 logging okhttp3 sse okhttp3 tls okhttp3 urlconnection mockwebserver3 mockwebserver3 junit4 mockwebserver3 junit5 license copyright 2019 square inc licensed under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license about a meticulous http client for the jvm android and graalvm lysine dev okhttp topics android graalvm java kotlin resources readme apache 2 0 license contributing contributing activity custom properties stars 47 1k stars watchers 1 6k watching forks 9 3k forks report repository releases used by contributors languages footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|