| Modifier and Type | Method and Description |
|---|---|
static void |
RestAssured.requestContentType(ContentType contentType)
Specify the default content type
|
static void |
RestAssured.responseContentType(ContentType contentType)
Specify the default content type (also sets the accept header).
|
| Modifier and Type | Method and Description |
|---|---|
ResponseSpecBuilder |
ResponseSpecBuilder.expectContentType(ContentType contentType)
Set the response content type to be
contentType. |
RequestSpecBuilder |
RequestSpecBuilder.setContentType(ContentType contentType)
Specify the content type of the request.
|
| 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 |
|---|---|
T |
ValidatableResponseOptionsImpl.contentType(ContentType contentType) |
ResponseSpecification |
ResponseSpecificationImpl.contentType(ContentType contentType) |
RequestSpecification |
RequestSpecificationImpl.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 |
|---|---|
ResponseSpecification |
ResponseSpecification.contentType(ContentType contentType)
Set the response content type to be
contentType. |
RequestSpecification |
RequestSpecification.contentType(ContentType contentType)
Specify the content type of the request.
|
Copyright © 2010–2014. All rights reserved.