Class BraveWebSearchRequest

All Implemented Interfaces:
BraveWebRequest, VerticalHeaderBuilder<BraveWebRequest>, WebHeaderBuilder<BraveWebRequest>

public final class BraveWebSearchRequest extends AbstractBraveRequestBuilder<BraveWebSearchRequest> implements BraveWebRequest
Builds a Brave web search request.

It configures the request URI and the request headers (user agent, cache control, API version, subscription token, and the geolocation headers) and builds the underlying HttpRequest.

Clients typically configure web search requests through BraveWebQuery's withHeaders consumer, which receives this builder as a WebHeaderBuilder typed with BraveWebRequest.

Instances are created with builder() and can be reused after calling AbstractBraveRequestBuilder.clear().