Extractors refactored to support pass by value. Documentation added for request and response.
This commit is contained in:
@ -8,11 +8,24 @@ import (
|
||||
// Request is a small wrapper around *http.Request that contains Metadata and Rendering option
|
||||
type Request struct {
|
||||
*http.Request
|
||||
Meta map[string]interface{}
|
||||
|
||||
// Meta contains arbitrary data.
|
||||
// Use this Meta map to store contextual data between your requests
|
||||
Meta map[string]interface{}
|
||||
|
||||
// If true, requests will be synchronized
|
||||
Synchronized bool
|
||||
Rendered bool
|
||||
Cancelled bool
|
||||
Encoding string
|
||||
|
||||
// If true request will be opened in Chrome and
|
||||
// fully rendered HTML DOM response will returned as response
|
||||
Rendered bool
|
||||
|
||||
// Optional response body encoding. Leave empty for automatic detection.
|
||||
// If you're having issues with auto detection, set this.
|
||||
Encoding string
|
||||
|
||||
// Set this true to cancel requests. Should be used on middlewares.
|
||||
Cancelled bool
|
||||
}
|
||||
|
||||
// Cancel request
|
||||
|
Reference in New Issue
Block a user