The best situation is to provide fixed values but sometimes you need to reference a request in your response. In order to do this you can profit from the fromRequest() method that allows you to reference a bunch of elements from the HTTP request. You can use the following options: - `fromRequest().url()` - return the request URL - `fromRequest().query(String key)` - return the first query parameter with a given name - `fromRequest().query(String key, int index)` - return the nth query parameter with a given name - `fromRequest().header(String key)` - return the first header with a given name - `fromRequest().header(String key, int index)` - return the nth header with a given name - `fromRequest().body()` - return the full request body - `fromRequest().body(String jsonPath)` - return the element from the request that matches the JSON Path fixes #237
= Spring Cloud Contract Verifier Samples Projects that contain different samples of Spring Cloud Contract Verifier. Below you can find a list of samples: include::contracts/README.adoc[] include::dsl/http-server/README.adoc[] include::dsl/http-client/README.adoc[] include::messaging/stream-sink/README.adoc[] include::messaging/stream-source/README.adoc[] include::restdocs/http-server/README.adoc[] include::restdocs/http-client/README.adoc[]