# Package groovy.http

## Package groovy.http Description

A small DSL and supporting types over the JDK HttpClient API.

since:
  6.0.0

- Class Summary
  Class | Description
  --- | ---
  HttpBuilder | Tiny DSL over JDK HttpClient.
  HttpBuilder.Config | Configuration DSL used to create an HttpBuilder.
  HttpBuilder.RequestSpec | Per-request configuration DSL used by the request methods.
  HttpBuilderClientTransform | AST transform that generates an implementation class for interfaces annotated with HttpBuilderClient.
  HttpClientHelper | Runtime helper used by the generated declarative HTTP client implementations.
  HttpResult | Simple response wrapper for the HttpBuilder DSL.
  HttpStreamResult | Streaming response wrapper for HttpBuilder's `streamAsync` family.
  HttpStreamResult.LinePublisher | Adapts a chunked byte publisher into a publisher of complete lines.
  HttpStreamResult.MappedPublisher | One-shot mapping Flow.Publisher that delegates subscription to a source publisher and applies a transformer per signalled item.
  HttpStreamResult.MappingSubscriber | Subscriber that applies a mapping closure before forwarding items downstream.

- Annotation Type Summary
  Annotation Type | Description
  --- | ---
  Body | Marks a method parameter as the HTTP request body.
  BodyText | Marks a method parameter as a plain text request body.
  Delete | Marks an interface method as an HTTP DELETE request.
  Form | Marks a method as sending a form-encoded POST body.
  Get | Marks an interface method as an HTTP GET request.
  Header | Declares a default HTTP header.
  Headers | Container annotation for repeatable Header annotations.
  HttpBuilderClient | Marks an interface as a declarative HTTP client.
  Patch | Marks an interface method as an HTTP PATCH request.
  Post | Marks an interface method as an HTTP POST request.
  Put | Marks an interface method as an HTTP PUT request.
  Query | Marks a method parameter as an HTTP query parameter.
  Timeout | Overrides the request timeout for a specific method in an HttpBuilderClient interface.