Package | Description |
---|---|
io.restassured.builder | |
io.restassured.config | |
io.restassured.http | |
io.restassured.internal | |
io.restassured.response | |
io.restassured.specification |
Modifier and Type | Method and Description |
---|---|
ResponseSpecBuilder |
ResponseSpecBuilder.expectContentType(ContentType contentType)
Set the response content type to be
contentType . |
RequestSpecBuilder |
RequestSpecBuilder.setAccept(ContentType contentType)
Specify the accept header of the request.
|
ResponseBuilder |
ResponseBuilder.setContentType(ContentType contentType)
Set the content type of the response
|
RequestSpecBuilder |
RequestSpecBuilder.setContentType(ContentType contentType)
Specify the content type of the request.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ContentType> |
EncoderConfig.contentEncoders() |
Modifier and Type | Method and Description |
---|---|
EncoderConfig |
EncoderConfig.defaultCharsetForContentType(Charset charset,
ContentType contentType)
Specify the default charset to use for the specific content-type if it's not specified in the content-type header explicitly
|
DecoderConfig |
DecoderConfig.defaultCharsetForContentType(Charset charset,
ContentType contentType)
Specify the default charset to use for the specific content-type if it's not specified in the content-type header explicitly
|
String |
EncoderConfig.defaultCharsetForContentType(ContentType contentType) |
String |
DecoderConfig.defaultCharsetForContentType(ContentType contentType) |
EncoderConfig |
EncoderConfig.defaultCharsetForContentType(String charset,
ContentType contentType)
Specify the default charset to use for the specific content-type if it's not specified in the content-type header explicitly
|
DecoderConfig |
DecoderConfig.defaultCharsetForContentType(String charset,
ContentType contentType)
Specify the default charset to use for the specific content-type if it's not specified in the content-type header explicitly
|
EncoderConfig |
EncoderConfig.encodeContentTypeAs(String contentType,
ContentType encoder)
Encodes the content (body) of the request specified with the given
contentType with the same
encoder used by the supplied encoder . |
Modifier and Type | Method and Description |
---|---|
static ContentType |
ContentType.fromContentType(String contentType) |
static ContentType |
ContentType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
ContentType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecificationImpl.accept(ContentType contentType) |
T |
ValidatableResponseOptionsImpl.contentType(ContentType contentType) |
RequestSpecification |
RequestSpecificationImpl.contentType(ContentType contentType) |
ResponseSpecification |
ResponseSpecificationImpl.contentType(ContentType contentType) |
Modifier and Type | Method and Description |
---|---|
T |
ValidatableResponseOptions.contentType(ContentType contentType)
Set the response content type to be
contentType . |
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecification.accept(ContentType contentType)
Specify the accept header of the request.
|
RequestSpecification |
RequestSpecification.contentType(ContentType contentType)
Specify the content type of the request.
|
ResponseSpecification |
ResponseSpecification.contentType(ContentType contentType)
Set the response content type to be
contentType . |
Copyright © 2010–2022. All rights reserved.