Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsuccessfulRequest = errors.New("unsuccessful request")
Functions ¶
func CheckResponseStatus ¶
func IsNotModified ¶
Types ¶
type XMLReader ¶
type XMLReader struct { ReplacementChar rune // contains filtered or unexported fields }
XMLReader implements a Reader that reads XML responses and does two things: 1. Ignores non UTF-8 characters. 2. If ReplacementChar is not rune(0), non-XML valid runes are replaced with that.
func NewXMLReader ¶
NewXMLReader wraps a new XMLReader around an existing reader. replaceNonXMLChars is a convenience option that sets ReplacementChar to the unicode white square character. This character will replace all invalid XML characters found in the stream.
Click to show internal directories.
Click to hide internal directories.