mirror of
https://github.com/bettercap/bettercap
synced 2025-07-11 07:37:00 -07:00
refact: some refactoring to the http proxy code
This commit is contained in:
parent
01bf914cd4
commit
3719c6d806
3 changed files with 75 additions and 68 deletions
19
session/modules/http_proxy_js_request.go
Normal file
19
session/modules/http_proxy_js_request.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package session_modules
|
||||
|
||||
type JSHeader struct {
|
||||
Name string
|
||||
Value string
|
||||
}
|
||||
|
||||
type JSRequest struct {
|
||||
Method string
|
||||
Version string
|
||||
Path string
|
||||
Hostname string
|
||||
Headers []JSHeader
|
||||
Body string
|
||||
}
|
||||
|
||||
func (j *JSRequest) ReadBody() string {
|
||||
return "TODO: read body"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue