| Modifier and Type | Method and Description |
|---|---|
static void |
RestAssured.requestContentType(ContentType contentType)
Deprecated.
Use a
RequestSpecBuilder to set the content-type and then set the created RequestSpecification to RestAssured.requestSpecification. |
static void |
RestAssured.responseContentType(ContentType contentType)
Deprecated.
Use
ResponseSpecBuilder.expectContentType(com.jayway.restassured.http.ContentType) and assign it to RestAssured.responseSpecification instead. |
| 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.
|
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 |
|---|---|
RequestSpecification |
RequestSpecificationImpl.accept(ContentType contentType) |
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 |
|---|---|
RequestSpecification |
RequestSpecification.accept(ContentType contentType)
Specify the accept header of the request.
|
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.