Sync docs from 2.0.x to gh-pages

This commit is contained in:
buildmaster
2018-11-08 17:06:51 +00:00
parent 0eeb8dd185
commit daa82d86fc
4 changed files with 61 additions and 4 deletions

View File

@@ -6349,6 +6349,7 @@ the recommended way, as doing so makes the tests <emphasis role="strong">host-in
regex: bar
response:
status: 200
fixedDelayMilliseconds: 1000
headers:
foo2: bar
foo3: foo33
@@ -8129,6 +8130,30 @@ provide an <literal>async()</literal> method in the <literal>response</literal>
async: true</programlisting>
</para>
</formalpara>
<simpara>You can also use the <literal>fixedDelayMilliseconds</literal> method / property to add delay to your stubs.</simpara>
<formalpara>
<title>Groovy DSL</title>
<para>
<programlisting language="groovy" linenumbering="unnumbered">org.springframework.cloud.contract.spec.Contract.make {
request {
method GET()
url '/get'
}
response {
status 200
body 'Passed'
fixedDelayMilliseconds 1000
}
}</programlisting>
</para>
</formalpara>
<formalpara>
<title>YAML</title>
<para>
<programlisting language="yml" linenumbering="unnumbered">response:
fixedDelayMilliseconds: 1000</programlisting>
</para>
</formalpara>
</section>
<section xml:id="_working_with_context_paths">
<title>Working with Context Paths</title>