Documentation ¶
Index ¶
- Variables
- func CreateResponse(req *http.Request) http.Response
- func LoadCommericalFreeResponse() string
- func LoadFakeResponse() string
- func LoadFilterList() []string
- func LoadResponseFromFile(filename string) string
- func LogToFile(filename string, b []byte) error
- func PrintResponse(r http.Response)
- type ClosingBuffer
- type Hulu
Constants ¶
This section is empty.
Variables ¶
View Source
var ADSTATE_FAKE = "" /* 512-byte string literal not displayed */
View Source
var ContentTypeJSON = "application/json; charset=utf-8"
View Source
var FAKERESPONSE = LoadFakeResponse()
View Source
var FILTER = true
View Source
var FILTER_STRINGS = LoadFilterList()
View Source
var FILTER_STRINGS_XFINITY = [...]string{"adserver"}
Functions ¶
func LoadCommericalFreeResponse ¶
func LoadCommericalFreeResponse() string
func LoadFakeResponse ¶
func LoadFakeResponse() string
func LoadFilterList ¶
func LoadFilterList() []string
func LoadResponseFromFile ¶
func PrintResponse ¶
Types ¶
type ClosingBuffer ¶
struct to implement io.ReadCloser
func (ClosingBuffer) Close ¶
func (cb ClosingBuffer) Close() (err error)
type Hulu ¶
type Hulu struct { Metadata modules.MetaStruct Quiet bool }
func (Hulu) FilterRequest ¶
func (Hulu) FilterResponse ¶
Block filterStrings from sending a response
Click to show internal directories.
Click to hide internal directories.