trait HttpHelpers extends AnyRef
- Alphabetic
- By Inheritance
- HttpHelpers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appendFuncToURL(url: String, funcStr: String): String
Given a URL and a Lift function String, append the function even if the URL has query params and a #
- def appendParams(url: String, params: Seq[(String, String)]): String
Append parameters to a URL
Append parameters to a URL
- url
the url to append the params to
- params
the parameters (name/value) to append to the URL
- returns
the url with the parameters appended
- def appendQueryParameters(url: String, params: List[(String, String)]): String
Given a list of query parameters, append them to the URL taking into account # and if there are any other query parameters
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def couldBeHtml(in: Map[String, String]): Boolean
Given a map of HTTP properties, return true if the "Content-type" value in the map is either "text/html" or "application/xhtml+xml"
Given a map of HTTP properties, return true if the "Content-type" value in the map is either "text/html" or "application/xhtml+xml"
- in
Map which may contain a key named Content-Type
- returns
true if there is a pair ("Content-Type", "text/html") or ("Content-Type", "application/xhtml+xml")
- def deepFindKids(in: NodeSeq, prefix: String, label: String): NodeSeq
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evalElemWithId(f: (String, Elem) => NodeSeq)(ns: NodeSeq): NodeSeq
Within a NodeSeq, find the first elem and run it through the function.
Within a NodeSeq, find the first elem and run it through the function. Return the resulting NodeSeq
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findElems(nodes: NodeSeq)(f: (Elem) => Boolean): NodeSeq
Find the elements of the specified NodeSeq that match the specified predicate and concatenate them into a resulting NodeSeq.
Find the elements of the specified NodeSeq that match the specified predicate and concatenate them into a resulting NodeSeq.
- nodes
- the NodeSeq to search for elements matching the predicate
- f
- the predicate to match elements with
- returns
the NodeSeq resulting from concatenation of the matched elements.
- def findInElems[T](nodes: NodeSeq)(f: (Elem) => Iterable[T]): List[T]
Map the specified function over the elements of the specified NodeSeq and return the concatenated result.
Map the specified function over the elements of the specified NodeSeq and return the concatenated result. This is essentially a container-type-transforming flatMap operation.
- def findKids(in: NodeSeq, prefix: String, label: String): NodeSeq
- def findOrAddId(in: Elem): (Elem, String)
If the specified Elem has an attribute named 'id', return it, otherwise construct a new Elem with a randomly generated id attribute and return the pair
If the specified Elem has an attribute named 'id', return it, otherwise construct a new Elem with a randomly generated id attribute and return the pair
- in
the element to test & add 'id' to
- returns
the new element and the id
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def insureField(toInsure: List[(String, String)], headers: List[(String, String)]): List[(String, String)]
Ensure that all the appropriate fields are in the header.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val knownSuffixes: Set[String]
The list of known suffixes used to split the URI into path parts and suffixes.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextFuncName(seed: Long): String
Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)
- def nextFuncName: String
Get a guaranteed unique field name (16 or 17 letters and numbers, starting with a letter)
- def nextNum: Long
Get a monotonically increasing number that's guaranteed to be unique for the current session
- def noHtmlTag(in: NodeSeq): Boolean
Return true if the xml doesn't contain an <html> tag
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def pairToUnprefixed(in: (String, Any)): MetaData
Transform a pair (name: String, value: Any) to an unprefixed XML attribute name="value"
- def paramsToUrlParams(params: List[(String, String)]): String
Take a list of name/value parse and turn them into a URL query string
Take a list of name/value parse and turn them into a URL query string
- params
the name/value pairs
- returns
a valid query string
- def splitAtHash(str: String)(f: (String) => String): String
Split a String at the Hash sign, run the function on the non-# side and then append the hash side
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toHashMap[A, B](in: Map[A, B]): HashMap[A, B]
Transform a general Map to a nutable HashMap
- def toString(): String
- Definition Classes
- AnyRef → Any
- def urlDecode(in: String): String
URL decode the string.
URL decode the string.
This is a pass-through to Java's URL decode with UTF-8
- def urlEncode(in: String): String
URL encode the string.
URL encode the string.
This is a pass-through to Java's URL encode with UTF-8
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()