api

All Types

Name Summary
   
org.http4k.core.Accept
org.http4k.security.AccessToken
org.http4k.security.AccessTokenDetails
org.http4k.security.oauth.server.AccessTokenError
org.http4k.security.AccessTokenFetcher
org.http4k.security.AccessTokenFetcherAuthenticator
org.http4k.security.oauth.server.accesstoken.AccessTokenGenerator
org.http4k.security.oauth.server.accesstoken.AccessTokenRequestAuthentication
org.http4k.security.AccessTokenResponse
org.http4k.security.oauth.server.AccessTokens

Provides a consistent way to generate access tokens.

org.http4k.client.internal.AdaptingWebSocket
org.http4k.serverless.AlibabaCloudFunction
org.http4k.filter.AllowAllOriginPolicy
org.http4k.client.Apache4AsyncClient
org.http4k.client.Apache4Client
org.http4k.server.Apache4Server
org.http4k.client.ApacheAsyncClient
org.http4k.client.ApacheClient
org.http4k.server.ApacheServer
org.http4k.contract.openapi.v3.Api
org.http4k.serverless.ApiGatewayV1AwsHttpAdapter
org.http4k.serverless.ApiGatewayV1LambdaFunction

This is the main entry point for lambda invocations using the V1 payload format. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.

org.http4k.serverless.ApiGatewayV2AwsHttpAdapter
org.http4k.serverless.ApiGatewayV2LambdaFunction

This is the main entry point for lambda invocations using the V2 payload format. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.

org.http4k.contract.openapi.ApiInfo
org.http4k.contract.security.ApiKeySecurity

Checks the presence of the named Api Key parameter. Filter returns 401 if Api-Key is not found in request.

org.http4k.contract.openapi.v3.ApiPath
org.http4k.contract.openapi.ApiRenderer

Renders the contract contents in OpenApi JSON format.

org.http4k.util.Appendable
org.http4k.serverless.ApplicationLoadBalancerAwsHttpAdapter
org.http4k.serverless.ApplicationLoadBalancerLambdaFunction

This is the main entry point for lambda invocations coming from an Application LoadBalancer. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.

(extensions in package org.http4k.server)
io.ktor.request.ApplicationRequest
(extensions in package org.http4k.server)
io.ktor.response.ApplicationResponse
org.http4k.serverless.AppLoader
org.http4k.serverless.AppLoaderWithContexts
org.http4k.testing.ApprovalContent

Determines which parts of the HttpMessage will be compared.

org.http4k.testing.ApprovalFailed
org.http4k.testing.ApprovalSource

The backing store where the approved and actual content will be stored.

org.http4k.testing.ApprovalTest

Standard Approval JUnit5 extension. Can be used to compare any HttpMessages.

org.http4k.testing.Approver

Coordinates the comparison of the content for a test.

org.http4k.format.Argo
org.http4k.client.AsyncHttpClient
org.http4k.contract.security.AuthCodeOAuthSecurity
org.http4k.security.oauth.server.AuthenticationComplete
org.http4k.security.oauth.server.AuthoriseRequestErrorRender
org.http4k.security.oauth.server.AuthoriseRequestValidator
org.http4k.cloudnative.env.Authority
org.http4k.security.oauth.server.AuthorizationCode
org.http4k.security.oauth.server.accesstoken.AuthorizationCodeAccessTokenGenerator
org.http4k.security.oauth.server.accesstoken.AuthorizationCodeAccessTokenRequest
org.http4k.security.oauth.server.AuthorizationCodeAlreadyUsed
org.http4k.security.oauth.server.AuthorizationCodeDetails
org.http4k.security.oauth.server.AuthorizationCodeExpired
org.http4k.security.oauth.server.AuthorizationCodes

Provides a consistent way to manage authorization codes

org.http4k.security.oauth.server.AuthorizationError
org.http4k.security.oauth.server.AuthRequest
org.http4k.security.oauth.server.AuthRequestExtractor
org.http4k.security.oauth.server.AuthRequestFromQueryParameters
org.http4k.security.oauth.server.AuthRequestTracking

Provides a mechanism to track OAuth authorization parameters to be used later (i.e. can be used later to generate code and/or tokens)

org.http4k.security.oauth.server.AuthRequestTrackingFilter
org.http4k.security.oauth.server.AuthRequestWithRequestAuthRequestExtractor
org.http4k.contract.openapi.v3.AutoJsonToJsonSchema
org.http4k.format.AutoMappingConfiguration

This is the generic interface used to configure auto-mapping functionality for message format libraries. The various methods here can be used to provide custom mapping behaviour (say for domain classes).

org.http4k.format.AutoMarshalling

Common base type for all format libraries which can convert directly from String -> Classes

org.http4k.events.AutoMarshallingEvents
org.http4k.format.AutoMarshallingJson
org.http4k.format.AutoMarshallingXml
org.http4k.aws.AwsCredentials
org.http4k.aws.AwsCredentialScope
org.http4k.aws.AwsHmacSha256
org.http4k.serverless.AwsHttpAdapter
org.http4k.serverless.AwsLambdaFunction
org.http4k.aws.AwsSdkClient
org.http4k.serverless.AzureFunction
org.http4k.routing.inspect.BackgroundColour
org.apache.commons.fileupload.util.mime.Base64Decoder
org.http4k.testing.BaseApprovalTest

Base JUnit extension for injecting an Approver into a JUnit5 test-case. Implement this to provide custom approval behaviours, or

org.http4k.contract.security.BasicAuthSecurity

Checks the presence of basic auth credentials. Filter returns 401 if auth fails.

org.http4k.filter.cookie.BasicCookieStorage
org.http4k.contract.security.BearerAuthSecurity

Checks the presence of bearer auth credentials. Filter returns 401 if auth fails.

org.http4k.chaos.Behaviour

Encapsulates the type of bad behaviour to apply to the response.

org.http4k.lens.BiDiBodyLens

A BiDiBodyLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target body.

org.http4k.lens.BiDiBodyLensSpec

Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target Body.

org.http4k.lens.BiDiLens

A BiDiLens provides the bi-directional extraction of an entity from a target, or the insertion of an entity into a target.

org.http4k.lens.BiDiLensSpec

Represents a bi-directional extraction of an entity from a target, or an insertion into a target.

org.http4k.lens.BiDiMapping

A BiDiMapping defines a reusable bidirectional transformation between an input and output type

org.http4k.lens.BiDiMultiLensSpec

Represents a bi-directional extraction of a list of entities from a target, or an insertion into a target.

org.http4k.lens.BiDiPathLens
org.http4k.lens.BiDiPathLensSpec
org.http4k.lens.BiDiWsMessageLens

A BiDiWsMessageLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target WsMessage.

org.http4k.lens.BiDiWsMessageLensSpec

Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target WsMessage.

org.http4k.multipart.BitFiddling
org.http4k.client.internal.BlockingQueueClient
org.http4k.client.internal.BlockingWsClient
org.http4k.core.Body

If this Body is NOT being returned to the caller (via a Server implementation or otherwise), close() should be called.

org.http4k.contract.openapi.v3.BodyContent
org.http4k.lens.BodyLens

A BodyLens provides the uni-directional extraction of an entity from a target body.

org.http4k.lens.BodyLensSpec

Represents a uni-directional extraction of an entity from a target Body.

org.http4k.core.BodyMode

BodyMode represents a choice between working lazily with streams or eagerly storing the body contents in memory.

(extensions in package org.http4k.format)
com.squareup.moshi.Moshi.Builder
org.http4k.webdriver.By

Custom set of By implementations for testing http4k applications. As the backing store is JSoup we are limited to implementing selectors which are supported by that.

(extensions in package org.http4k)
java.nio.ByteBuffer
org.http4k.filter.CacheControlHeaderPart
org.http4k.filter.CachingFilters

Useful filters for applying Cache-Controls to request/responses

org.http4k.filter.CanonicalPayload
org.http4k.chaos.ChaosBehaviours
org.http4k.chaos.ChaosEngine

The Chaos Engine controls the lifecycle of applying Chaotic behaviour to traffic, which is exposed as a standard Http4k Filter. Chaos can be programmatically updated and enabled/disabled. By default, the engine is deactivated, so activate() needs to be called to witness any change in behaviour,

org.http4k.chaos.ChaosStages
org.http4k.chaos.ChaosTriggers
org.http4k.security.oauth.server.request.Claim
org.http4k.security.oauth.server.request.Claims
org.http4k.security.oauth.server.accesstoken.ClientCredentialsAccessTokenGenerator
org.http4k.filter.ClientFilters
org.http4k.security.oauth.server.ClientId
org.http4k.security.oauth.server.ClientIdMismatch
org.http4k.security.ClientSecretAccessTokenFetcherAuthenticator
org.http4k.security.oauth.server.accesstoken.ClientSecretAccessTokenRequestAuthentication
org.http4k.cloudnative.ClientTimeout
org.http4k.security.oauth.server.ClientValidationFilter
org.http4k.security.oauth.server.ClientValidator

Provides a consistent way to retrieve clients attempting to use an authorization code flow

org.http4k.testing.ClosedWebsocket
org.http4k.cloudnative.health.Completed
org.http4k.contract.openapi.v3.Components
org.http4k.cloudnative.health.Composite

Result of multiple checks, for which it reports an overall result (ie. any failure is fatal).

org.http4k.filter.CompressionResult
org.http4k.format.ConfigurableGson
org.http4k.format.ConfigurableJackson
org.http4k.format.ConfigurableJacksonXml
org.http4k.format.ConfigurableJacksonYaml
org.http4k.format.ConfigurableKlaxon
org.http4k.format.ConfigurableKotlinxSerialization
org.http4k.format.ConfigurableMoshi
org.http4k.server.ConnectorBuilder
org.http4k.lens.ContentNegotiation
org.http4k.core.ContentType
org.http4k.testing.ContentTypeAwareApprovalTest

Approval testing JUnit5 extension that checks the expected content type is present in the

org.http4k.contract.ContractBuilder
org.http4k.contract.ContractRenderer
org.http4k.contract.ContractRoute
org.http4k.contract.ContractRouteSpec
org.http4k.contract.ContractRouteSpec0
org.http4k.contract.ContractRouteSpec1
org.http4k.contract.ContractRouteSpec10
org.http4k.contract.ContractRouteSpec2
org.http4k.contract.ContractRouteSpec3
org.http4k.contract.ContractRouteSpec4
org.http4k.contract.ContractRouteSpec5
org.http4k.contract.ContractRouteSpec6
org.http4k.contract.ContractRouteSpec7
org.http4k.contract.ContractRouteSpec8
org.http4k.contract.ContractRouteSpec9
org.http4k.contract.ContractRoutingHttpHandler
org.http4k.core.cookie.Cookie
org.http4k.lens.Cookies
org.http4k.filter.cookie.CookieStorage
org.http4k.filter.CorsPolicy
org.http4k.core.Credentials
org.http4k.security.CrossSiteRequestForgeryToken
org.http4k.security.CsrfGenerator
org.http4k.filter.DebuggingFilters
org.http4k.filter.DefaultCacheTimings
org.http4k.cloudnative.health.DefaultReadinessCheckResultRenderer

Basic reporting of ReadinessCheckResults

org.http4k.serverless.DetectBinaryBody

OpenWhisk Base64 encodes Binary requests and responses when they are sent to the deployed Function. This interface allows for custom implementations of that logic, which might be required if your function supports more than one endpoint (with mixed request/response types).

org.http4k.routing.experimental.DirectoryRenderer
org.http4k.client.DualSyncAsyncHttpHandler
org.http4k.template.dust.Dust
org.http4k.template.DustTemplates
org.http4k.cloudnative.env.Environment

This models the runtime environment of the shell where the app is running. Optionally pass a separator to use for multi-values otherwise a standard comma is used - this means you MUST override the separator if you have single values which contain commas, otherwise singular environment keys will just retrieve the first value.

org.http4k.cloudnative.env.EnvironmentKey

This models the key used to get a value out of the Environment using the standard Lens mechanic. Note that if your values contain commas, either use a EnvironmentKey.(mapping).multi.required()/optional()/defaulted() to retrieve the entire list, or override the comma separator in your initial Environment.

org.http4k.jsonrpc.ErrorHandler
org.http4k.jsonrpc.ErrorMessage
org.http4k.contract.ErrorResponseRenderer
org.http4k.routing.inspect.EscapeMode
org.http4k.core.etag.ETag
org.http4k.core.etag.ETagValidationRequestParser

Implemented according to https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11

org.http4k.events.Event

Represents a meaningful “happening” in an app.

org.http4k.events.EventCategory
org.http4k.events.EventFilter
org.http4k.events.EventFilters

Useful EventFilters used in building event processing pipelines to add various types of metadata to the events

org.http4k.events.Events
org.http4k.cloudnative.health.Failed
org.http4k.lens.Failure
org.http4k.security.oauth.testing.FakeOAuthServer

This Server provides auto-login functionality without the need for user action.

org.http4k.webdriver.FeatureNotImplementedYet
org.http4k.contract.openapi.v3.Field
org.http4k.contract.openapi.v3.FieldMetadata
org.http4k.contract.openapi.v3.FieldMetadataRetrievalStrategy
org.http4k.contract.openapi.v3.FieldRetrieval
org.http4k.core.etag.FieldValue
org.http4k.testing.FileSystemApprovalSource
org.http4k.core.Filter
org.http4k.cloudnative.Forbidden
org.http4k.routing.inspect.ForegroundColour
org.http4k.core.body.Form
org.http4k.lens.FormField
org.http4k.security.oauth.server.FragmentResponseRender
org.http4k.template.FreemarkerTemplates
(extensions in package org.http4k.filter)
kotlin.Function1
(extensions in package org.http4k.client)
kotlin.Function1
(extensions in package org.http4k.cloudnative)
kotlin.Function1
(extensions in package org.http4k.server)
kotlin.Function1
(extensions in package org.http4k.events)
kotlin.Function1
(extensions in package org.http4k.routing)
kotlin.Function1
(extensions in package org.http4k.servlet)
kotlin.Function1
(extensions in package org.http4k.testing)
kotlin.Function1
(extensions in package org.http4k.template)
kotlin.Function1
(extensions in package org.http4k.chaos)
kotlin.Function1
org.http4k.cloudnative.GatewayTimeout
org.http4k.security.oauth.server.GenerateAccessToken
org.http4k.security.oauth.server.accesstoken.GenerateAccessTokenForGrantType
org.http4k.webdriver.GetURL
org.http4k.servirtium.GitHub

Read a file from a repository using the GitHub API.

org.http4k.servirtium.GithubFile
org.http4k.serverless.GoogleCloudFunction
org.http4k.security.oauth.server.accesstoken.GrantType
org.http4k.security.oauth.server.accesstoken.GrantTypesConfiguration
org.http4k.graphql.GraphQLHandler
org.http4k.graphql.GraphQLRequest
org.http4k.graphql.GraphQLResponse
org.http4k.graphql.GraphQLWithContextHandler
(extensions in package org.http4k.format)
com.google.gson.Gson
org.http4k.format.Gson

To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.

(extensions in package org.http4k.format)
com.google.gson.GsonBuilder
org.http4k.filter.GzipCompressionMode
org.http4k.template.HandlebarsTemplates

Handlebars templating support. Use the function in the constructor to configure the instance.

org.http4k.contract.openapi.v3.HasSchema
org.http4k.lens.Header
org.http4k.lens.HeaderLens
org.http4k.core.Headers
org.http4k.cloudnative.health.Health

Represents the set of operational endpoints to ensure that a particular app is working ok. By default provides Readiness and Liveness endpoints, but extra routes can be passed, as can a different renderer implementation for the ReadinessCheck results.

org.http4k.util.Hex
org.http4k.cloudnative.env.Host
org.http4k.testing.HtmlApprovalTest

Approval JUnit5 extension configured to compare prettified-HTML messages. Note that this strips

org.http4k.server.Http4kApache4RequestHandler

Exposed to allow for insertion into a customised Apache WebServer instance

org.http4k.server.Http4kChannelHandler

Exposed to allow for insertion into a customised Netty server instance

org.http4k.cloudnative.Http4kK8sServer

A K8S server consists of a main application and a health application, running on 2 different ports. This class provides unified start/stop control.

org.http4k.webdriver.Http4KNavigation
org.http4k.metrics.Http4kOpenTelemetry

OpenTracing works using a set of named Singletons. We use the the constant name here to make it simple to get the instances of the required objects.

org.http4k.server.Http4kRequestHandler

Exposed to allow for insertion into a customised Apache WebServer instance

org.http4k.server.Http4kServer
org.http4k.servlet.Http4kServletAdapter

Adapts between the Servlet and http4k APIs

org.http4k.server.Http4kSseCallback
org.http4k.server.Http4kUndertowHttpHandler

Exposed to allow for insertion into a customised Undertow server instance

org.http4k.webdriver.Http4kWebDriver
org.http4k.server.Http4kWebSocketCallback
org.http4k.server.Http4kWebSocketFrameHandler
org.http4k.server.Http4kWsChannelHandler
org.http4k.server.HttpExchangeHandler
org.http4k.core.HttpHandler
org.http4k.servlet.HttpHandlerServlet

Simple servlet which wraps an http4k HttpHandler

org.http4k.core.HttpMessage

HttpMessages are designed to be immutable, so any mutation methods return a modified copy of the message.

org.http4k.contract.HttpMessageMeta
(extensions in package org.http4k.serverless)
com.microsoft.azure.functions.HttpRequestMessage
(extensions in package org.http4k.servlet)
javax.servlet.http.HttpServletRequest
org.http4k.core.HttpTransaction
org.http4k.filter.HttpTransactionLabeler
org.http4k.server.HttpUndertowHandler
org.http4k.security.openid.IdToken
org.http4k.security.openid.IdTokenConsumer
org.http4k.security.oauth.server.IdTokens
org.http4k.util.IllegalSchemaException
org.http4k.contract.security.ImplicitOAuthSecurity
org.http4k.routing.experimental.InMemoryResource
org.http4k.security.oauth.server.InsecureCookieBasedAuthRequestTracking
org.http4k.security.InsecureCookieBasedOAuthPersistence

This is an example implementation which stores CSRF and AccessToken values in an INSECURE client-side cookie. Access-tokens for end-services are fully available to the browser so do not use this in production!

org.http4k.servirtium.InteractionControl
org.http4k.servirtium.InteractionOptions

General controls for the Servirtium interactions and how they are recorded to the storage format. The manipulations are used to replace/remove any dynamic parts of the request (eg. “Date” header) so that the traffic can be correctly matched during the replay process.

org.http4k.servirtium.InteractionStorage

Provides storage for the recorded Servirtium interaction data.

org.http4k.lens.Invalid
org.http4k.security.oauth.server.InvalidAuthorizationRequest
org.http4k.security.oauth.server.InvalidClientAssertion
org.http4k.security.oauth.server.InvalidClientAssertionType
org.http4k.security.oauth.server.InvalidClientCredentials
org.http4k.security.oauth.server.InvalidClientId
org.http4k.format.InvalidJsonException
org.http4k.security.oauth.server.InvalidRedirectUri
org.http4k.security.oauth.server.InvalidRequest
org.http4k.security.oauth.server.InvalidRequestObject
org.http4k.security.oauth.server.InvalidScopes
org.http4k.serverless.InvocationLambdaAwsHttpAdapter
org.http4k.serverless.InvocationLambdaFunction

This is the main entry point for lambda invocations using the direct invocations. It uses the local environment to instantiate the HttpHandler which can be used for further invocations.

org.http4k.format.Jackson

To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.

org.http4k.contract.openapi.v3.JacksonFieldMetadataRetrievalStrategy
org.http4k.contract.openapi.v3.JacksonJsonNamingAnnotated
org.http4k.contract.openapi.v3.JacksonJsonPropertyAnnotated
org.http4k.format.JacksonXml

To implement custom XML configuration, create your own object singleton. Extra mappings can be added before done() is called.

org.http4k.format.JacksonYaml
org.http4k.template.Jade4jTemplates

Jade4j templating support. Use the function in the constructor to configure the instance.

org.http4k.client.Java8HttpClient

Use this legacy Java client when you’re not yet on Java 11.

org.http4k.client.JavaHttpClient

Basic JDK-based Client.

org.http4k.server.Jetty
org.http4k.client.JettyClient
org.http4k.format.Json

This is the contract for all JSON implementations

(extensions in package org.http4k.format)
com.squareup.moshi.JsonAdapter
org.http4k.testing.JsonApprovalTest

Approval JUnit5 extension configured to compare prettified-JSON messages.

(extensions in package org.http4k.format)
kotlinx.serialization.json.JsonBuilder
org.http4k.contract.JsonErrorResponseRenderer
(extensions in package org.http4k.chaos)
com.fasterxml.jackson.databind.JsonNode
org.http4k.cloudnative.health.JsonReadinessCheckResultRenderer

Reporting of ReadinessCheckResults in a JSON tree

org.http4k.security.oauth.server.JsonResponseErrorRenderer
org.http4k.jsonrpc.JsonRpc
org.http4k.jsonrpc.JsonRpcHandler
org.http4k.jsonrpc.JsonRpcMethodBinding
org.http4k.jsonrpc.JsonRpcService
org.http4k.util.JsonSchema
org.http4k.util.JsonSchemaCreator
org.http4k.contract.openapi.v2.JsonToJsonSchema
org.http4k.contract.openapi.v3.JsonToJsonSchema
org.http4k.format.JsonType
org.http4k.webdriver.JSoupElementFinder
org.http4k.webdriver.JSoupWebElement
(extensions in package org.http4k.format)
com.beust.klaxon.Klaxon
org.http4k.format.Klaxon

To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.

(extensions in package org.http4k.format)
com.fasterxml.jackson.module.kotlin.KotlinModule
org.http4k.format.KotlinxSerialization

To implement custom JSON configuration, create your own object singleton extending ConfigurableKotlinxSerialization, passing in the JSON configuration block

org.http4k.server.KtorCIO
org.http4k.server.KtorNetty
org.http4k.lens.Lens

A Lens provides the uni-directional extraction of an entity from a target.

org.http4k.lens.LensExtractor
org.http4k.lens.LensFailure
org.http4k.lens.LensFailures
org.http4k.lens.LensGet
org.http4k.lens.LensInjector
org.http4k.lens.LensInjectorExtractor
org.http4k.lens.LensSet
org.http4k.lens.LensSpec

Represents a uni-directional extraction of an entity from a target.

(extensions in package org.http4k.core)
kotlin.collections.List
(extensions in package org.http4k.core.body)
kotlin.collections.List
org.http4k.cloudnative.health.Liveness

The Liveness check is used to determine if an app is alive.

org.http4k.filter.cookie.LocalCookie
(extensions in package org.http4k.core)
kotlin.collections.Map
org.http4k.cloudnative.env.MapEnvironment
org.http4k.jsonrpc.Mapping
org.http4k.filter.MaxAgeTtl
org.http4k.core.MemoryBody

Represents a body that is backed by an in-memory ByteBuffer. Closing this has no effect.

org.http4k.core.MemoryRequest
org.http4k.core.MemoryResponse
org.http4k.lens.Meta
org.http4k.events.MetadataEvent
org.http4k.core.Method
org.http4k.jsonrpc.MethodBindings
org.http4k.metrics.MetricsDefaults
org.http4k.filter.MicrometerMetrics
org.http4k.core.MimeTypes
org.apache.commons.fileupload.util.mime.MimeUtility

Utility class to decode MIME texts.

org.http4k.lens.Missing
org.http4k.security.oauth.server.MissingAuthorizationCode
org.http4k.security.oauth.server.MissingRedirectUri
org.http4k.format.Moshi

To implement custom JSON configuration, create your own object singleton. Extra mappings can be added before done() is called.

org.http4k.lens.MultiLensSpec

Represents a uni-directional extraction of a list of entities from a target.

org.http4k.core.MultipartEntity
org.http4k.lens.MultipartForm
org.http4k.core.MultipartFormBody

Represents a Multi-part that is backed by a stream, which should be closed after handling the content. The gotchas which apply to StreamBody also apply here..

org.http4k.lens.MultipartFormField
org.http4k.lens.MultipartFormFile
org.http4k.security.oauth.server.MustHaveRedirectUri
org.http4k.testing.NamedResourceApprover
org.http4k.webdriver.Navigate
org.http4k.server.Netty
org.http4k.contract.openapi.v3.NoFieldFound
org.http4k.client.internal.NonBlockingClient
org.http4k.security.openid.Nonce
org.http4k.security.openid.NonceGenerator
org.http4k.contract.openapi.v3.NoOpFieldMetadataRetrievalStrategy
org.http4k.contract.NoRenderer
org.http4k.contract.security.NoSecurity

Default NoOp security filter. Filter allows all traffic through.

org.http4k.cloudnative.NotFound
org.http4k.security.OAuthCallback
org.http4k.security.oauth.server.OAuthError
org.http4k.security.OAuthPersistence

Provides persistence for OAuth lifecycle values:

org.http4k.security.OAuthProvider

Provides a configured set of objects for use with an OAuth2 provider.

org.http4k.security.OAuthProviderConfig
org.http4k.security.OAuthRedirectionFilter
org.http4k.contract.security.OAuthScope
org.http4k.contract.security.OAuthSecurity
org.http4k.security.oauth.server.OAuthServer

Provide help creating OAuth Authorization Server with Authorization Code Flow

(extensions in package org.http4k.format)
com.fasterxml.jackson.databind.ObjectMapper
org.http4k.client.OkHttp
org.http4k.contract.openapi.v2.OpenApi2

Contract renderer for OpenApi2 format JSON. Note that for the JSON schema generation, auto-naming of object models is used as the input relies on JSON objects and not JVM classees.

org.http4k.contract.openapi.v3.OpenApi3

Contract renderer for OpenApi3 format JSON. For the JSON schema generation, naming of object models will default to either reflective or hashcode based depending on if a Auto Json is passed.

org.http4k.contract.openapi.v3.OpenApi3ApiRenderer

Converts a API to OpenApi3 format JSON.

org.http4k.contract.openapi.OpenApiExtension

Provides a way to apply extensions to the OpenAPI JSON document.

org.http4k.filter.OpenTelemetryMetrics
org.http4k.serverless.OpenWhiskFunction
org.http4k.filter.OriginPolicy

For creating custom origin policy for allowing CORS

org.http4k.webdriver.Page
org.apache.commons.fileupload.util.ParameterParser

A simple parser intended to parse sequences of name/value pairs.

org.http4k.core.Parameters
org.http4k.lens.ParamMeta
org.apache.commons.fileupload.util.mime.ParseException
org.http4k.lens.Path
org.http4k.lens.PathLens
org.http4k.lens.PathLensSpec

Represents a uni-directional extraction of an entity from a target path segment.

org.http4k.routing.PathMethod
org.http4k.contract.PathSegments
org.http4k.filter.Payload
org.http4k.template.PebbleTemplates
org.http4k.server.PolyHandler

A PolyHandler represents the combined routing logic of an multiple protocol handlers

org.http4k.websocket.PolyHandler
org.http4k.server.PolyServerConfig

Standard interface for creating a configured WebServer which supports Websockets

org.http4k.cloudnative.env.Port
org.http4k.client.PreCannedApache4HttpClients
org.http4k.client.PreCannedApacheHttpClients
org.http4k.client.PreCannedJavaHttpClients
org.http4k.client.PreCannedOkHttpClients
org.http4k.contract.PreFlightExtraction
org.http4k.sse.PushAdaptingSse
org.http4k.websocket.PushPullAdaptingWebSocket
org.http4k.lens.Query
org.http4k.lens.QueryLens
org.http4k.security.oauth.server.QueryResponseRender
org.apache.commons.fileupload.util.mime.QuotedPrintableDecoder
org.http4k.server.Ratpack
org.http4k.server.RatpackHttp4kHandler
org.http4k.cloudnative.health.Readiness

The Readiness check is used to determine if an app is prepared to receive live traffic.

org.http4k.cloudnative.health.ReadinessCheck

A Readiness check is used to determine if the pod is ready to receive traffic. An example is to test if the app can talk to it’s database.

org.http4k.cloudnative.health.ReadinessCheckResult

The result of a Readiness check. Checks can be combined together with +() to provide an overall result.

org.http4k.cloudnative.health.ReadinessCheckResultRenderer

Renders the results of a readiness check

org.http4k.testing.ReadResource
org.http4k.traffic.ReadWriteCache

Combined Read/Write storage models, optimised for retrieval.

org.http4k.testing.ReadWriteResource
org.http4k.traffic.ReadWriteStream

Combined Read/Write storage models, optimised for replay.

org.http4k.testing.RecordingEvents

Simple recording events that can be used in tests

org.http4k.security.RedirectionUriBuilder
org.http4k.security.oauth.server.RedirectUriMismatch
org.http4k.security.oauth.server.refreshtoken.RefreshToken
org.http4k.security.oauth.server.refreshtoken.RefreshTokenAccessTokenGenerator
org.http4k.security.oauth.server.refreshtoken.RefreshTokens
org.http4k.chaos.RemoteChaosApi

A set of endpoints to an application which will control the setting and toggling chaos behaviour. The added endpoints are: GET //status <- check the on off/status of the injected chaos POST //activate <- turn on the chaos. optionally POST a JSON body to set a list of new stages to use. POST //deactivate <- turn off the chaos POST //toggle <- toggle the chaos

org.http4k.cloudnative.RemoteRequestFailed

This hierarchy of exceptions should be used to indicate that an upstream remote system has failed with a non-successful status code which caused us to stop processing. They are designed to be used with the Server and Client filters which will allow automatic handling and propagation of erroneous responses from upstream.

org.http4k.contract.openapi.Render
org.http4k.contract.openapi.RenderModes
org.http4k.traffic.Replay

Provides a stream of traffic for replaying purposes.

org.http4k.core.Request
org.http4k.serverless.RequestContent
org.http4k.contract.openapi.v3.RequestContents
org.http4k.core.RequestContext
org.http4k.lens.RequestContextKey
org.http4k.lens.RequestContextLens
org.http4k.core.RequestContexts

In-memory RequestContext store. Override the storeId to use multiple stores in one app.

org.http4k.filter.RequestFilters
org.http4k.security.openid.RequestJwtContainer
org.http4k.security.openid.RequestJwts
org.http4k.security.oauth.server.request.RequestJWTValidator
org.http4k.contract.RequestMeta
org.http4k.security.oauth.server.request.RequestObject
org.http4k.security.oauth.server.request.RequestObjectExtractor
org.http4k.contract.openapi.v3.RequestParameter
org.http4k.core.RequestSource
org.http4k.filter.ResilienceFilters
org.http4k.routing.experimental.Resource
org.http4k.routing.experimental.ResourceListingHandler
org.http4k.routing.ResourceLoader
org.http4k.routing.experimental.ResourceLoaders
org.http4k.routing.experimental.ResourceLoading

A little convenience thunk to simplify implementing Router for resource loaders.

org.http4k.routing.experimental.ResourceSummary
org.http4k.traffic.Responder

Provides HTTP Handlers which respond using pre-stored Requests.

org.http4k.core.Response
org.http4k.contract.openapi.v3.ResponseContents
org.http4k.filter.ResponseFilters
org.http4k.contract.ResponseMeta
org.http4k.security.ResponseMode
org.http4k.security.oauth.server.ResponseRender
org.http4k.security.ResponseType
org.http4k.security.oauth.server.RfcError
org.http4k.contract.Root
org.http4k.routing.RoutedRequest
org.http4k.routing.RoutedResponse
org.http4k.contract.RouteMeta
org.http4k.contract.RouteMetaDsl
org.http4k.routing.Router

Matches requests for routing purposes.

org.http4k.routing.RouterDescription
org.http4k.routing.RouterMatch

The result of a matching operation. May or may not contain a matched HttpHandler.

org.http4k.routing.RoutingHttpHandler

Composite HttpHandler which can potentially service many different URL patterns. Should return a 404 Response if it cannot service a particular Request.

org.http4k.routing.RoutingSseHandler
org.http4k.routing.RoutingWsHandler
org.http4k.core.cookie.SameSite
org.http4k.filter.SamplingDecision
org.http4k.contract.openapi.v3.SchemaModelNamer
org.http4k.cloudnative.env.Secret

A secret is a value which tries very hard not to expose itself as a string, by storing it’s value in a byte array. You can “use” the value only once, after which the value is destroyed

org.http4k.contract.security.Security

Endpoint security. Provides filter to be applied to endpoints for all requests.

org.http4k.contract.openapi.SecurityRenderer

Provides rendering of Security models in to OpenApi specs.

org.http4k.server.ServerConfig
org.http4k.filter.ServerFilters
org.http4k.junit.ServirtiumRecording

JUnit 5 extension for recording HTTP traffic to disk in Servirtium format.

org.http4k.junit.ServirtiumReplay

JUnit 5 extension for replaying HTTP traffic from disk in Servirtium format.

org.http4k.servirtium.ServirtiumServer
org.http4k.security.oauth.server.SimpleAuthoriseRequestValidator
org.http4k.contract.simple.SimpleJson
org.http4k.contract.openapi.v3.SimpleLookup
org.http4k.format.SimpleMoshiAdapterFactory

Convenience class to create Moshi Adapter Factory

org.http4k.traffic.Sink
org.http4k.contract.Slash
org.http4k.traffic.Source
org.http4k.sse.Sse
org.http4k.sse.SseClient
org.http4k.sse.SseConsumer
org.http4k.sse.SseHandler
org.http4k.sse.SseMessage
org.http4k.chaos.Stage

Defines a periodic element during which a particular ChaosBehaviour is active.

org.http4k.filter.StaleIfErrorTtl
org.http4k.filter.StaleWhenRevalidateTtl
org.http4k.security.State
org.http4k.core.Status
org.http4k.servirtium.StorageProvider
org.http4k.core.Store
org.http4k.core.StreamBody

Represents a body that is backed by a (lazy) InputStream. Operating with StreamBody has a number of potential gotchas:

(extensions in package org.http4k.core)
kotlin.String
(extensions in package org.http4k.contract)
kotlin.String
(extensions in package org.http4k)
kotlin.String
(extensions in package org.http4k.routing)
kotlin.String
(extensions in package org.http4k.routing.inspect)
kotlin.String
org.http4k.lens.StringBiDiMappings

A set of standardised String <-> Type conversions which are used throughout http4k

(extensions in package org.http4k)
java.lang.StringBuilder
org.http4k.server.SunHttp
org.http4k.contract.Tag
org.http4k.template.dust.TemplateExpansion
org.http4k.template.dust.TemplateExpansionService
org.http4k.template.dust.TemplateLoader
org.http4k.template.TemplateRenderer
org.http4k.template.Templates

Supported template implementations for templating engine implementations

org.http4k.serverless.TencentCloudFunction
org.http4k.serverless.openwhisk.TestAction
org.http4k.serverless.alibaba.TestFunction
org.http4k.serverless.azure.TestFunction
org.http4k.serverless.gcf.TestFunction
tencent.TestFunction
org.http4k.serverless.lambda.TestFunctionAlb
org.http4k.serverless.lambda.TestFunctionInvocation
org.http4k.serverless.lambda.TestFunctionV1
org.http4k.serverless.lambda.TestFunctionV2
org.http4k.testing.TestNamer
org.http4k.testing.TestWsClient

A class that is used for offline testing of a routed Websocket, without starting up a Server. Calls are routed synchronously to the receiving Websocket, and error are propagated to the caller.

org.http4k.routing.inspect.TextStyle
org.http4k.template.ThymeleafTemplates
org.http4k.cloudnative.env.Timeout
org.http4k.security.oauth.server.TokenRequest
org.http4k.filter.TraceId
org.http4k.filter.TrafficFilters
org.http4k.chaos.Trigger
org.http4k.cloudnative.Unauthorized
org.http4k.server.Undertow
org.http4k.lens.Unsupported
org.http4k.security.oauth.server.UnsupportedGrantType
org.http4k.security.oauth.server.UnsupportedResponseType
org.http4k.core.Uri
org.http4k.core.UriTemplate
org.http4k.routing.experimental.URLResource
org.http4k.security.oauth.server.UserRejectedRequest
org.http4k.lens.Validator

Runs through a list of lenses and extracts the values from each one, collecting the errors

org.http4k.routing.inspect.Variation
org.http4k.template.ViewModel
org.http4k.template.ViewNotFound
org.http4k.lens.WebForm
org.http4k.websocket.Websocket

Represents a connected Websocket instance, and can be passed around an application. This is configured to react to events on the WS event stream by attaching listeners.

org.http4k.client.WebsocketClient
org.http4k.server.WebSocketServerHandler
org.http4k.websocket.WsClient
org.http4k.websocket.WsConsumer
org.http4k.websocket.WsHandler
org.http4k.websocket.WsMessage
org.http4k.lens.WsMessageLens

A WsMessageLens provides the extraction of an entity from a target WsMessage.

org.http4k.lens.WsMessageLensSpec

Represents a extraction of an entity from a target WsMessage.

org.http4k.server.WsServerConfig
org.http4k.websocket.WsStatus
org.http4k.format.Xml
org.http4k.testing.XmlApprovalTest

Approval JUnit5 extension configured to compare prettified-XML messages.

org.http4k.filter.ZipkinTraces