Skip to content

Commit

Permalink
Configuring HTTP Client
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoweb committed Dec 16, 2017
1 parent e9a7e45 commit 5e0fca2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,15 @@ repository.findByFirstName('Dolores').then((persons) => {
console.log(persons); // all persons who have the name Dolores
});
```

## Configuring HTTP Client

You can change the global client settings, by setter `modelPersist.http.config.options`.

```javascript
modelPersist.http.config.options = {
headers: {
'X-API-Key': 'secret'
}
};
```

0 comments on commit 5e0fca2

Please sign in to comment.