refact: some refactoring to the http proxy code

This commit is contained in:
evilsocket 2018-01-08 00:51:50 +01:00
parent 01bf914cd4
commit 3719c6d806
3 changed files with 75 additions and 68 deletions

View 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"
}