@@ -100,13 +100,6 @@ function parseparam(::Type{String}, str::String; escape=true)
100100 return escape ? HTTP. unescapeuri (str) : str
101101end
102102
103- function parseparam (:: Type{Date} , str:: String ; escape= true )
104- return parse (Date, escape ? HTTP. unescapeuri (str) : str)
105- end
106-
107- function parseparam (:: Type{DateTime} , str:: String ; escape= true )
108- return parse (DateTime, escape ? HTTP. unescapeuri (str) : str)
109- end
110103
111104function parseparam (:: Type{Char} , str:: String ; escape= true )
112105 value = escape ? HTTP. unescapeuri (str) : str
@@ -118,18 +111,12 @@ function parseparam(::Type{Regex}, str::String; escape=true)
118111 return Regex (value)
119112end
120113
121- function parseparam (:: Type{Bool} , str:: String ; escape= true )
122- return parse (Bool, escape ? HTTP. unescapeuri (str) : str)
123- end
124114
125115function parseparam (:: Type{Symbol} , str:: String ; escape= true )
126116 value = escape ? HTTP. unescapeuri (str) : str
127117 return Symbol (value)
128118end
129119
130- function parseparam (:: Type{T} , str:: String ; escape= true ) where {T <: Number }
131- return parse (T, escape ? HTTP. unescapeuri (str) : str)
132- end
133120
134121function parseparam (:: Type{T} , str:: String ; escape= true ) where {T <: Enum }
135122 return T (parse (Int, escape ? HTTP. unescapeuri (str) : str))
0 commit comments