MCPcopy
hub / github.com/square/retrofit

github.com/square/retrofit @3.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 3.0.0 ↗
3,469 symbols 16,943 edges 341 files 193 documented · 6%
README

Retrofit

A type-safe HTTP client for Android and Java.

For more information please see the website.

Download

Download the latest JAR or grab from Maven central at the coordinates com.squareup.retrofit2:retrofit:3.0.0.

Snapshots of the development version are available in Sonatype's snapshots repository.

Retrofit requires at minimum Java 8+ or Android API 21+.

R8 / ProGuard

If you are using R8 the shrinking and obfuscation rules are included automatically.

ProGuard users must manually add the options from retrofit2.pro. You might also need rules for OkHttp which is a dependency of this library.

License

Copyright 2013 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.

Extension points exported contracts — how you extend this code

Converter (Interface)
Convert objects to and from their representation in HTTP. Instances are created by plain Factory a factory which [39 implementers]
retrofit/src/main/java/retrofit2/Converter.java
ExampleWithoutParameterNames (Interface)
This module is compiled without parameter names embedded in the class file. [4 implementers]
retrofit/test-helpers/src/main/java/retrofit2/helpers/ExampleWithoutParameterNames.java
GitHub (Interface)
(no doc) [2 implementers]
samples/src/main/java/com/example/retrofit/SimpleService.java
Callback (Interface)
Communicates responses from a server or offline requests. One and only one method will be invoked in response to a given [25 …
retrofit/src/main/java/retrofit2/Callback.java
Browse (Interface)
(no doc)
samples/src/main/java/com/example/retrofit/InvocationMetrics.java
Call (Interface)
An invocation of a Retrofit method that sends a request to a webserver and returns a response. Each call yields its own [6 …
retrofit/src/main/java/retrofit2/Call.java
Pop (Interface)
(no doc)
samples/src/main/java/com/example/retrofit/DynamicBaseUrl.java
CallAdapter (Interface)
Adapts a Call with response type R into the type of T. Instances are created by {@linkplain Fact [18 implementers]
retrofit/src/main/java/retrofit2/CallAdapter.java

Core symbols most depended-on inside this repo

t
called by 1426
website/public/2.x/converter-kotlinx-serialization/scripts/main.js
i
called by 613
website/public/2.x/converter-kotlinx-serialization/scripts/main.js
enqueue
called by 523
retrofit/src/main/java/retrofit2/Call.java
get
called by 315
retrofit-converters/wire/src/test/java/retrofit2/converter/wire/WireConverterFactoryTest.java
r
called by 309
website/public/2.x/converter-kotlinx-serialization/scripts/main.js
body
called by 305
retrofit-adapters/scala/src/test/java/retrofit2/adapter/scala/FutureTest.java
o
called by 273
website/public/2.x/converter-kotlinx-serialization/scripts/main.js
create
called by 251
retrofit/src/main/java/retrofit2/Retrofit.java

Shape

Method 2,302
Function 653
Class 399
Interface 113
Enum 2

Languages

Java81%
TypeScript19%

Modules by API surface

website/public/2.x/converter-kotlinx-serialization/scripts/main.js552 symbols
retrofit/java-test/src/test/java/retrofit2/RequestFactoryTest.java179 symbols
retrofit/java-test/src/test/java/retrofit2/RetrofitTest.java131 symbols
retrofit/java-test/src/test/java/retrofit2/CallTest.java59 symbols
retrofit/src/main/java/retrofit2/ParameterHandler.java49 symbols
retrofit/src/main/java/retrofit2/Utils.java42 symbols
samples/src/main/java/com/example/retrofit/ErrorHandlingAdapter.java35 symbols
retrofit-converters/moshi/src/test/java/retrofit2/converter/moshi/MoshiConverterFactoryTest.java32 symbols
retrofit/src/main/java/retrofit2/Retrofit.java31 symbols
retrofit/src/main/java/retrofit2/OkHttpCall.java29 symbols
retrofit-mock/src/main/java/retrofit2/mock/Calls.java27 symbols
retrofit-converters/protobuf/src/test/java/retrofit2/converter/protobuf/ProtoConverterFactoryTest.java27 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@astrojs/starlight0.34.0 · 1×
astro5.6.1 · 1×
sharp0.34.0 · 1×
starlight-links-validator0.16.0 · 1×
starlight-versions0.5.3 · 1×

For agents

$ claude mcp add retrofit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact