Skip to content

Context support

Compare
Choose a tag to compare
@smotes smotes released this 27 Jul 17:25
· 27 commits to master since this release
0e7cd30

This release introduces a breaking change to the API as well as some bug fixes and general cleanup:

  • All mountebank client methods now take a context.Context value as their first argument.

  • Updated the type for HTTP request headers and query parameters to use the http.Header and url.Values types, respectively. This will make things more idiomatic by working with stdlib types, but also addresses a JSON un-marshaling bug when more than one value was provided per key on either structure.

  • Cleaned up the godocs in various places.

  • Added new function to the internal assertion library, updated testing in some spots.