kaven-utils - v5.5.1
Preparing search index...
HttpsProxyServer
Class HttpsProxyServer
Hierarchy (
View Summary
)
AbstractProxyServer
HttpsProxyServer
Index
Constructors
constructor
Properties
Authorization?
Enable
Error
Enable
Log
socket
Client
Map
Verbose
Methods
connect
Error
handle
Http
Request
Initialize
Log
on
Data
on
Socket
Connected
Start
Stop
write
To
Server
Constructors
constructor
new
HttpsProxyServer
(
options
:
ServerOptions
)
:
HttpsProxyServer
Parameters
options
:
ServerOptions
Returns
HttpsProxyServer
Properties
Optional
Authorization
Authorization
?:
KavenAuthentication
Enable
Error
EnableError
:
boolean
= true
Enable
Log
EnableLog
:
boolean
= true
Protected
Readonly
socket
Client
Map
socketClientMap
:
Map
<
Socket
,
HttpProxyUser
>
= ...
Verbose
Verbose
:
boolean
= false
Methods
Protected
connect
connect
(
port
:
number
,
host
?:
string
)
:
Promise
<
Socket
>
Parameters
port
:
number
Optional
host
:
string
Returns
Promise
<
Socket
>
Protected
Error
Error
(
...
args
:
unknown
[]
)
:
void
Parameters
...
args
:
unknown
[]
Returns
void
Protected
handle
Http
Request
handleHttpRequest
(
client
:
HttpProxyUser
,
req
:
HttpRequestMessage
)
:
Promise
<
void
>
Parameters
client
:
HttpProxyUser
req
:
HttpRequestMessage
Returns
Promise
<
void
>
Protected
Initialize
Initialize
()
:
void
Returns
void
Protected
Log
Log
(
...
args
:
unknown
[]
)
:
void
Parameters
...
args
:
unknown
[]
Returns
void
Protected
on
Data
onData
(
client
:
HttpProxyUser
,
data
:
Buffer
)
:
Promise
<
void
>
Parameters
client
:
HttpProxyUser
data
:
Buffer
Returns
Promise
<
void
>
Protected
on
Socket
Connected
onSocketConnected
(
userSocket
:
Socket
)
:
void
Parameters
userSocket
:
Socket
Returns
void
Start
Start
(
port
?:
number
)
:
void
Parameters
port
:
number
= 8765
Returns
void
Protected
Stop
Stop
(
client
:
HttpProxyUser
,
msg
?:
string
)
:
void
Parameters
client
:
HttpProxyUser
msg
:
string
= ""
Returns
void
Protected
write
To
Server
writeToServer
(
req
:
HttpRequestMessage
,
proxyToServerSocket
:
Socket
)
:
void
Parameters
req
:
HttpRequestMessage
proxyToServerSocket
:
Socket
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
Authorization
Enable
Error
Enable
Log
socket
Client
Map
Verbose
Methods
connect
Error
handle
Http
Request
Initialize
Log
on
Data
on
Socket
Connected
Start
Stop
write
To
Server
kaven-utils - v5.5.1
Loading...