Skip to content
Merged
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
1 change: 1 addition & 0 deletions source/api/commands/visit.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Option | Default | Description
`method` | `GET` | The HTTP method to use in the visit. Can be `GET` or `POST`.
`body` | `null` | An optional body to send along with a `POST` request. If it is a string, it will be passed along unmodified. If it is an object, it will be URL encoded to a string and sent with a `Content-Type: application/x-www-urlencoded` header.
`headers` | `{}` | An object that maps HTTP header names to values to be sent along with the request. *Note:* `headers` will only be sent for the initial `cy.visit()` request, not for any subsequent requests.
`qs` | `null` | Query parameters to append to the `url` of the request
`log` | `true` | {% usage_options log %}
`auth` | `null` | Adds Basic Authorization headers
`failOnStatusCode` | `true` | Whether to fail on response codes other than `2xx` and `3xx`
Expand Down