android.net.http

Interfaces

Callback

Callback interface used to receive callbacks from a BidirectionalStream.

Callback

Users of the HTTP stack extend this class to receive callbacks indicating the progress of a UrlRequest being processed.

StatusListener

Listener interface used with getStatus to receive the status of a UrlRequest.

Classes

BidirectionalStream

Class for bidirectional sending and receiving of data over HTTP/2 or QUIC connections.

ConnectionMigrationOptions

A class configuring the HTTP connection migration functionality.

DnsOptions

A class configuring the host resolution functionality.

HeaderBlock

Unmodifiable container of headers or trailers.

HttpEngine

An engine to process UrlRequests, which uses the best HTTP stack available on the current platform.

HttpResponseCache

Caches HTTP and HTTPS responses to the filesystem so they may be reused, saving time and bandwidth.

QuicOptions

Configuration options for QUIC.

SslCertificate

SSL certificate info (certificate details) class

SslError

This class represents a set of one or more SSL errors and the associated SSL certificate.

UploadDataProvider

Abstract class allowing the embedder to provide an upload body to UrlRequest.

UploadDataSink

Defines callbacks methods for UploadDataProvider.

UrlRequest

Controls an HTTP request (GET, PUT, POST etc).

UrlResponseInfo

Basic information about a response.

X509TrustManagerExtensions

X509TrustManager wrapper exposing Android-added features.

Exceptions

CallbackException

Exception passed to UrlRequest.Callback.onFailed() when UrlRequest.Callback or UploadDataProvider method throws an exception.

HttpException

Base exception passed to UrlRequest.Callback.onFailed().

InlineExecutionProhibitedException

Thrown when an executor runs a submitted runnable inline in java.util.concurrent.Executor#execute(Runnable) and android.net.http.UrlRequest.Builder#setDirectExecutorAllowed was not called.

NetworkException

Exception passed to UrlRequest.Callback.onFailed() when the HTTP stack fails to process a network request.

QuicException

Subclass of NetworkException which contains a detailed QUIC error code from QuicErrorCode.