mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Since it contains a raw byte slice of the request data rather than a `http.Request` object.
15 lines
228 B
Go
15 lines
228 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type RawRequest struct {
|
|
Timestamp int64
|
|
Request []byte
|
|
}
|
|
|
|
func (self RawRequest) String() string {
|
|
return fmt.Sprintf("Request: %v, timestamp: %v", string(self.Request), self.Timestamp)
|
|
}
|