mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-11-20 09:36:31 +00:00
Add proxy support
This commit is contained in:
1 parent
ccfe21c15a
commit
cfd158462f
5 files changed
+138
-27
No files matched your search
@@ -12,11 +12,17 @@ interface V1Routes {
|
||||
[key: string]: (params: V1RequestBase, response: V1ResponseBase) => Promise<void>
|
||||
}
|
||||
|
||||
export interface Proxy {
|
||||
url?: string
|
||||
username?: string
|
||||
password?: string
|
||||
}
|
||||
|
||||
export interface V1RequestBase {
|
||||
cmd: string
|
||||
cookies?: SetCookie[],
|
||||
maxTimeout?: number
|
||||
proxy?: any// TODO: use interface not any
|
||||
proxy?: Proxy
|
||||
session: string
|
||||
headers?: Headers // deprecated v2, not used
|
||||
userAgent?: string // deprecated v2, not used
|
||||
|
||||
Reference in new issue
Block a user