- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for JsonAdapter (0.05 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.recipes; import com.squareup.moshi.JsonAdapter; import com.squareup.moshi.Moshi; import com.squareup.moshi.Types; import java.io.IOException; import java.util.LinkedHashMap; import java.util.Map; import okhttp3.Interceptor; import okhttp3.MediaType;
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 04 17:43:43 GMT 2025 - 3.1K bytes - Click Count (0) -
docs/recipes.md
``` === ":material-language-java: Java" ```java private final OkHttpClient client = new OkHttpClient(); private final Moshi moshi = new Moshi.Builder().build(); private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class); public void run() throws Exception { Request request = new Request.Builder() .url("https://api.github.com/gists/c2a7c39532239ff261be")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 47.8K bytes - Click Count (0)