GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ThePalaceProject/android-http: Android HTTP client for The Palace Project

BranchesTags
Open more actions menu

Latest commit

 

History

430 Commits
430 Commits

Folders and files

NameName
Last commit message
Last commit date
.ci @ aa07332
.ci @ aa07332
 
 
.ci-local
.ci-local
 
 
.github
.github
 
 
gradle/wrapper
gradle/wrapper
 
 
org.librarysimplified.http.api
org.librarysimplified.http.api
 
 
org.librarysimplified.http.bearer_token
org.librarysimplified.http.bearer_token
 
 
org.librarysimplified.http.chucker
org.librarysimplified.http.chucker
 
 
org.librarysimplified.http.downloads
org.librarysimplified.http.downloads
 
 
org.librarysimplified.http.network_access
org.librarysimplified.http.network_access
 
 
org.librarysimplified.http.refresh_token
org.librarysimplified.http.refresh_token
 
 
org.librarysimplified.http.tests
org.librarysimplified.http.tests
 
 
org.librarysimplified.http.uri_builder
org.librarysimplified.http.uri_builder
 
 
org.librarysimplified.http.vanilla
org.librarysimplified.http.vanilla
 
 
org.thepalaceproject.android.platform @ 8f49b86
org.thepalaceproject.android.platform @ 8f49b86
 
 
palace-build-conventions @ 89f81e8
palace-build-conventions @ 89f81e8
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
README-CHANGES.xml
README-CHANGES.xml
 
 
README.md
README.md
 
 
VERSIONING.txt
VERSIONING.txt
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
jreleaser.toml
jreleaser.toml
 
 
pull_request_template.md
pull_request_template.md
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

android-http

Build Status Maven Central

The Palace Project's Android HTTP client.

http

Image by Free-Photos from Pixabay

What Is This?

The contents of this repository define an API specification and an implementation of an opinionated HTTP client for the various Palace Project Android projects. It is intended to implement various policy decisions (such as problem report parsing, higher timeout values, etc) in a centralized location so that these policies can be enacted across all codebases without duplicating code.

Features

  • Simple HTTP client interface modelled on okhttp
  • Automatic RFC7807 problem report parsing
  • Control over redirects
  • Optional integration with Chucker
  • Optional transparent handling of Library Simplified Bearer Tokens
  • Optional synchronous file downloads with MIME type checking
  • High-coverage automated test suite
  • Easily mocked, strongly-typed Kotlin API
  • API Semantic Versioning enforced with japicmp
  • Apache 2.0 license

Building

Build!

Make sure you clone this repository with git clone --recursive. If you forgot to use --recursive, then execute:

$ git submodule init
$ git submodule update --remote --recursive

The short version: Install an Android SDK and run:

$ ./gradlew clean assembleDebug test

Please read the list of instructions below for specific details on configurations.

Android SDK

Install the Android SDK and Android Studio. We don't support the use of any other IDE at the moment.

JDK

The build requires JDK 25; the code is compiled to Java 11 bytecode.

The JAVA_HOME environment variable must be set correctly. You can check what it is set to in most shells with echo $JAVA_HOME. If that command does not show anything, adding the following line to $HOME/.profile and then executing source $HOME/.profile or opening a new shell should suffice:

# Replace NNN with your particular version of 25.
export JAVA_HOME=/path/to/jdk25_NNN

You can verify that everything is set up correctly by inspecting the results of both java -version and javac -version:

$ java -version
openjdk version "25.0.4.1" 2026-08-18 LTS
OpenJDK Runtime Environment (Red_Hat-25.0.4.1.1-1) (build 25.0.4.1+1-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-25.0.4.1.1-1) (build 25.0.4.1+1-LTS, mixed mode, sharing)

Branching/Merging

We use git flow as our basis for branching and creating releases. We highly recommend installing Git Flow AVH Edition to automate some of the work of branching and tagging. Using gitflow-avh is not required, but by automating the underlying repository operations, it eliminates the possibility of making mistakes, and keeps the various branches consistent.

Versioning

The API complies with Semantic Versioning 2.0.0, and this is enforced using japicmp. The current version of the code is analyzed with respect to the previous version, and incompatible changes will require a major version increment. Please see the VERSIONING.txt file for the list of packages that are exempt from versioning rules due to being private implementation packages.

Modules

The project is heavily modularized in order to keep the separate components as loosely coupled as possible. New features should typically be implemented as new modules.

Module Description
org.librarysimplified.http.api Library Simplified HTTP client (API)
org.librarysimplified.http.bearer_token Library Simplified HTTP client (Bearer token extension)
org.librarysimplified.http.chucker Library Simplified HTTP client (Chucker extension)
org.librarysimplified.http.downloads Library Simplified HTTP client (File downloads)
org.librarysimplified.http.network_access Library Simplified HTTP client (Network access service)
org.librarysimplified.http.tests Library Simplified HTTP client (Test suite)
org.librarysimplified.http.uri_builder Library Simplified HTTP client (URI query builder)
org.librarysimplified.http.vanilla Library Simplified HTTP client (Vanilla implementation)

License

Copyright 2020 The New York Public Library, Astor, Lenox, and Tilden Foundations

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

Android HTTP client for The Palace Project

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

4 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.