mirror of https://github.com/databricks/cli.git
Handlers now receive testserver.Request and return any which could be - nil (returns 404) - string / []byte (returns it as is but sets content-type to json or test depending on content) - object (encodes it as json and sets content-type to json) - testserver.Response (full control over status, headers) The config is now using the same testserver.Response struct as handlers, so the same logic applies there. It is now possible to specify headers in test.toml. This also fixes a bug with RecordRequest reading the body, not leaving it for the actual handler. |
||
---|---|---|
.. | ||
basic | ||
server |