Hayden Hargreaves 24b00146bf feat: added lots of data to the models and collection process
Next step might actually be the TUI! Or maybe the raw proxy, it would be
nice to be able to just run the proxy.
2026-04-14 14:39:27 -07:00

36 lines
613 B
Go

package model
import (
"net"
"net/http"
"net/url"
"time"
"github.com/google/uuid"
)
type ProxyServer struct {
Listener *net.Listener
Server *http.Server
Url string
}
type Request struct {
ID uuid.UUID
Method string
ResponseData []byte
RequestData []byte
RawURL string
Host string
URL string
QueryString string
QueryMap url.Values
Status int
Duration time.Duration
Pending bool
Failed bool
StartTime time.Time
RequestHeaders http.Header
ResponseHeaders http.Header
}