public class ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath
extends java.lang.Object
| Constructor and Description |
|---|
PactDslRequestWithoutPath(java.lang.String description) |
public PactDslRequestWithoutPath(java.lang.String description)
public ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath method(java.lang.String method)
method - Valid HTTP methodpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath headers(java.util.Map<java.lang.String,java.lang.String> headers)
headers - Key-value pairspublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath query(java.lang.String query)
query - query stringpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(java.lang.String body)
body - Request body in string formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(org.json.JSONObject body)
body - Request body in JSON formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(PactDslJsonBody body)
body - Built using the Pact body DSLpublic ConsumerPactBuilder.PactDslRequestWithPath path(java.lang.String path)
path - string path