Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { BeforeRequest *CacheEntry `json:"beforeRequest,omitempty"` AfterRequest *CacheEntry `json:"afterRequest,omitempty"` }
type CacheEntry ¶
type Entry ¶
type Entry struct { PageRef string `json:"pageref,omitempty"` StartedDateTime time.Time `json:"startedDateTime"` Time int64 `json:"time"` Request *Request `json:"request"` Response *Response `json:"response"` Cache Cache `json:"cache"` Timings Timings `json:"timings"` ServerIpAddress string `json:"serverIpAddress,omitempty"` Connection string `json:"connection,omitempty"` Comment string `json:"comment,omitempty"` }
func (*Entry) FillIPAddress ¶
FillIPAddress resolves and adds the IP of the server
type Har ¶
type Har struct {
Log Log `json:"log"`
}
func (*Har) AppendEntry ¶
func (*Har) AppendPage ¶
type NameValuePair ¶
type PageTimings ¶
type PostData ¶
type PostData struct { MimeType string `json:"mimeType"` Params []PostDataParam `json:"params,omitempty"` Text string `json:"text,omitempty"` Comment string `json:"comment,omitempty"` }
type PostDataParam ¶
type Request ¶
type Request struct { Method string `json:"method"` Url string `json:"url"` HttpVersion string `json:"httpVersion"` Cookies []Cookie `json:"cookies"` Headers []NameValuePair `json:"headers"` QueryString []NameValuePair `json:"queryString"` PostData *PostData `json:"postData,omitempty"` BodySize int64 `json:"bodySize"` HeadersSize int64 `json:"headersSize"` }
type Response ¶
type Response struct { Status int `json:"status"` StatusText string `json:"statusText"` HttpVersion string `json:"httpVersion"` Cookies []Cookie `json:"cookies"` Headers []NameValuePair `json:"headers"` Content Content `json:"content"` RedirectUrl string `json:"redirectURL"` BodySize int64 `json:"bodySize"` HeadersSize int64 `json:"headersSize"` Comment string `json:"comment,omitempty"` }
Click to show internal directories.
Click to hide internal directories.