hoauth-0.2.3: A Haskell implementation of OAuth 1.0a protocol.Source codeContentsIndex
Network.OAuth.Http.PercentEncoding
Description
Percent encoding http://tools.ietf.org/html/rfc3986#page-12 functions, with the exception that all encoding/decoding is in UTF-8.
Synopsis
class PercentEncoding a where
encode :: a -> String
decode :: String -> Maybe (a, String)
decodeWithDefault :: PercentEncoding a => a -> String -> a
Documentation
class PercentEncoding a whereSource
Methods
encode :: a -> StringSource
Encodes a type into its percent encoding representation.
decode :: String -> Maybe (a, String)Source
Decodes a percent-encoded type to its native type.
decodeWithDefault :: PercentEncoding a => a -> String -> aSource
Decodes a percent encoded string. In case of failure returns a default value, instead of Nothing.
Produced by Haddock version 2.6.1