mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-04-29 02:37:27 +09:00
README.md
This commit is contained in:
parent
2d63e2a006
commit
77dd5654bb
13
README.md
13
README.md
@ -43,9 +43,11 @@ npm run serve
|
||||
### Options
|
||||
|
||||
| Property | Type | Description | Default |
|
||||
| :------------------ | :--------------------- | :----------------------- | :------ |
|
||||
| :------------------ | :--------------------- | :------------------------------ | :------ |
|
||||
| **lang** | *string* | Accept-Language for the request | `null` |
|
||||
| **followRedirects** | *boolean* | Whether follow redirects | `true` |
|
||||
| **plugins** | *plugin[]* (see below) | Custom plugins | `null` |
|
||||
| **agent** | *Got.Agents* | Custom HTTP agent (see below) | `null` |
|
||||
|
||||
#### Plugin
|
||||
|
||||
@ -58,6 +60,15 @@ interface IPlugin {
|
||||
|
||||
urls are WHATWG URL since v4.
|
||||
|
||||
#### Custom HTTP agent for proxy
|
||||
You can specify agents to be passed to Got for proxy use, etc.
|
||||
https://github.com/sindresorhus/got/blob/v12.6.0/documentation/tips.md#proxying
|
||||
|
||||
**⚠️If you set some agent, local IP rejecting will not work.⚠️**
|
||||
(Summaly usually rejects local IPs.)
|
||||
|
||||
(Summaly currently does not support http2.)
|
||||
|
||||
### Returns
|
||||
|
||||
A Promise of an Object that contains properties below:
|
||||
|
Loading…
x
Reference in New Issue
Block a user