Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ So we made one up. It's newline-delimited.
Everything after the response headers section (i.e. the blank line after line 4) is sent back as the response body, either verbatim or Base64-decoded, depending on what content type you put in the response headers. Unless you use the placeholder support, but more on that later.
It doesn't even matter what the filename is as long as it ends in `.tail`. You just use one of these files per mock response "endpoint" and Mocktail loads them all in when you start it.

##### Notes

There are tools that can record all the HTTP(s) traffic in the background while the app is running in the exact file format described here, like [SWHttpTrafficRecorder](https://github.com/capitalone/SWHttpTrafficRecorder). After recording, the files can be used by Mocktail to stub out HTTP servers.

## Placeholder support

Oh, so you wanted your mock responses to be smarter? That's not very slacker-like.
Expand Down