Skip to content

Commit

Permalink
update(): readme
Browse files Browse the repository at this point in the history
  • Loading branch information
madoBaker committed Nov 7, 2018
1 parent 39212b2 commit bec8d77
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,16 +279,14 @@ Example:
this.imageLoaderConfig.enableFallbackAsPlaceholder(true);
```
---
#### setHttpRequestOptions(options: any)
Set options for HttpClient to use.
#### setHttpHeaders(headers: HttpHeaders)
Set headers for HttpClient to use.
Example:
```ts
this.imageLoaderConfig.setHttpRequestOptions({
headers: {
Authorization: 'Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=='
}
});
const headers = new HttpHeaders()
.set("Authorization", "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA==");
this.imageLoaderConfig.setHttpHeaders(headers);
```
---
#### setFileNameCachedWithExtension(enable: boolean)
Expand Down

0 comments on commit bec8d77

Please sign in to comment.