static final class HttpBuilder.RequestSpec
extends Object
| Constructor and description |
|---|
HttpBuilder.RequestSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
asString() |
|
void |
body(Object value) |
|
void |
bytes(byte[] value) |
|
void |
form(Map<String, ?> values)Encodes map entries as application/x-www-form-urlencoded and sets a default content type. |
|
void |
header(String name, Object value) |
|
void |
headers(Map<String, ?> values) |
|
void |
json(Object value)Serializes the given value as JSON and sets a default content type. |
|
void |
query(String name, Object value) |
|
void |
query(Map<String, ?> values) |
|
void |
text(Object value) |
|
void |
timeout(Duration value) |
Encodes map entries as application/x-www-form-urlencoded and sets a default content type.
Serializes the given value as JSON and sets a default content type.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.