Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Apr 15, 2024
1 parent 1f3f72a commit d579e54
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ytest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,22 @@ match { // assert resp.body.id == id

## host

TODO
```go
host <host> <real>
```

The Host directive allows you to use an abstract domain name (which does not necessarily exist) to represent a service. For examples:

```go
host "https://foo.com", "http://127.0.0.1:8080"
```

The host directive makes it easy for you to use the same test code between your test environment and production environment:

```go
host "https://foo.com", ${FOO_HOST}
// Let env FOO_HOST point to the test environment or production environment
```

## auth

Expand Down

0 comments on commit d579e54

Please sign in to comment.