Documentation ¶
Overview ¶
The campwiz package contains all of the brains for querying campsites.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // How long to cache by default: needs to be less than session cookie (12 hours is too long) RecommendedMaxAge = 4 * time.Hour )
Functions ¶
Types ¶
type Request ¶
type Request struct { // Method type Method string // URL URL string // Referrer Referrer string // CookieJar Jar *cookiejar.Jar // Cookies Cookies []*http.Cookie // POST form values Form url.Values // Maximum age of content. MaxAge time.Duration Headers map[string]string // POST info ContentType string Body []byte }
Request defines what can be passed in as a request
type Response ¶
type Response struct { // URL result is from URL string // Status Code StatusCode int // HTTP headers Header http.Header // Cookies are the cookies that came with the request. Cookies []*http.Cookie // Body is the entire HTTP message body. Body []byte // MTime is when this value was last updated in the cache. MTime time.Time // If entry was served from cache Cached bool }
Response defines which data may be cached for an HTTP response.
Click to show internal directories.
Click to hide internal directories.