Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions securecookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ type JSONEncoder struct{}
// you encoding an object upstream and do not wish to re-encode it.
type NopEncoder struct{}

// Err returns any configuration error that occurred during New or subsequent
// setup calls (e.g., BlockFunc). If Err returns non-nil, all Encode and Decode
// calls will fail with this error.
func (s *SecureCookie) Err() error {
return s.err
}

// MaxLength restricts the maximum length, in bytes, for the cookie value.
//
// Default is 4096, which is the maximum value accepted by Internet Explorer.
Expand Down
Loading