Home | History | Annotate | Download | only in url

Lines Matching defs:escape

88 	return "invalid URL escape " + strconv.Quote(string(e))
116 // escape them (because hosts can't use %-encoding for
136 // last three as well. That leaves only ? to escape.
146 // userinfo, so we must escape only '@', '/', and '?'.
147 // The parsing of userinfo treats ':' as special so we must escape
152 // The RFC reserves (so we must escape) everything.
157 // everything, so escape nothing.
208 // introduces %25 being allowed to escape a percent sign
270 return escape(s, encodeQueryComponent)
276 return escape(s, encodePathSegment)
279 func escape(s string, mode encoding) string {
395 s := escape(u.username, encodeUserPassword)
397 s += ":" + escape(u.password, encodeUserPassword)
647 if escp := escape(path, encodePath); p == escp {
673 return "*" // don't escape (Issue 11202)
675 return escape(u.Path, encodePath)
758 buf.WriteString(escape(h, encodeHost))
784 buf.WriteString(escape(u.Fragment, encodeFragment))