Methods
auth() → {Base}
Sets the auth object to use to authenticate the user.
Returns:
The object itself.
- Type
- Base
header(name, value) → {Base}
Adds a header.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the header name |
value |
string | the header value |
Returns:
The object itself..
- Type
- Base
headers(headers) → {Base}
Adds headers. The given headers are merged with the existing ones if any.
Parameters:
Name | Type | Description |
---|---|---|
headers |
object | the headers to be merged with the existing ones. |
Returns:
The object itself.
- Type
- Base
httpTimeout() → {Base}
Sets a HTTP timeout.
Returns:
The object itself.
- Type
- Base
repositoryName() → {Base}
Sets the repository name.
Returns:
The object itself.
- Type
- Base
schemas() → {Base}
Sets the schemas.
Returns:
The object itself.
- Type
- Base
timeout() → {Base}
Sets a global timeout, used as HTTP timeout and transaction timeout
by default.
Returns:
The object itself.
- Type
- Base
transactionTimeout() → {Base}
Sets a transaction timeout.
Returns:
The object itself.
- Type
- Base