Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 committed Dec 5, 2023
1 parent a544311 commit dbb594e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@ JsonLd.compact(document, contextDocument).get();
...
```

#### HTTP Document Loader Timeout
Configure and set a custom HTTP document loader instance.

```javascript
// since 1.4.0 - set read timeout
static DocumentLoader LOADER = HttpLoader.defaultInstance().timeount(Duration.ofSeconds(30));
...
JsonLd.expand(...).loader(LOADER).get();
```


## Contributing

All PR's welcome!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class SchemeRouter implements DocumentLoader {
.set("http", HttpLoader.defaultInstance())
.set("https", HttpLoader.defaultInstance())
.set("file", new FileLoader());

private final Map<String, DocumentLoader> loaders;

public SchemeRouter() {
Expand Down

0 comments on commit dbb594e

Please sign in to comment.