head
Configures an HTTP HEAD request specification using the provided block and returns a BuildingStep
instance for further customization. This method uses the HTTP HEAD method to define the request specification within the provided lambda.
Return
A BuildingStep
instance initialized with the generated request specification.
Parameters
type of the request payload
The class type of the request body.
A lambda used to configure the RequestSpecificationBuilder
for the HEAD request.
Constructs a HEAD HTTP request with the provided configuration, request type, and specification block.
Return
A BuildingStep instance representing the constructed request.
Parameters
The configuration for the stubbed request.
The class type of the request payload.
A lambda that specifies the request parameters.
Configures an HTTP HEAD request specification using the provided block and returns a BuildingStep
for further customization. This method serves as a convenience shortcut.
Return
A BuildingStep
instance initialized with the generated request specification.
Parameters
A lambda used to configure the RequestSpecificationBuilder
for the GET request.