Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Path :: Encoding -> Type where
- Raw :: [ByteString] -> Path 'NoEncoding
- Encoded :: [ByteString] -> Path 'Percent
- type RawPath = Path 'NoEncoding
- type EscapedPath = Path 'Percent
- data TwiceEscapedPath
- class ToPath a where
- toPath :: a -> ByteString
- rawPath :: ToPath a => a -> Path 'NoEncoding
- escapePath :: Path a -> EscapedPath
- escapePathTwice :: Path a -> TwiceEscapedPath
- collapsePath :: Path a -> Path a
Path Types
data Path :: Encoding -> Type where Source #
Raw :: [ByteString] -> Path 'NoEncoding | |
Encoded :: [ByteString] -> Path 'Percent |
Instances
ToByteString EscapedPath Source # | |
Defined in Amazonka.Data.Path toBS :: EscapedPath -> ByteString Source # | |
ToLog EscapedPath Source # | |
Defined in Amazonka.Data.Log build :: EscapedPath -> ByteStringBuilder Source # | |
Monoid RawPath Source # | |
Semigroup RawPath Source # | |
Show (Path a) Source # | |
Eq (Path a) Source # | |
type EscapedPath = Path 'Percent Source #
data TwiceEscapedPath Source #
Used in SigV4
Instances
ToByteString TwiceEscapedPath Source # | |
Defined in Amazonka.Data.Path toBS :: TwiceEscapedPath -> ByteString Source # | |
Show TwiceEscapedPath Source # | |
Defined in Amazonka.Data.Path showsPrec :: Int -> TwiceEscapedPath -> ShowS # show :: TwiceEscapedPath -> String # showList :: [TwiceEscapedPath] -> ShowS # | |
Eq TwiceEscapedPath Source # | |
Defined in Amazonka.Data.Path (==) :: TwiceEscapedPath -> TwiceEscapedPath -> Bool # (/=) :: TwiceEscapedPath -> TwiceEscapedPath -> Bool # |
Constructing Paths
toPath :: a -> ByteString Source #
Instances
ToPath ByteString Source # | |
Defined in Amazonka.Data.Path toPath :: ByteString -> ByteString Source # | |
ToPath Text Source # | |
Defined in Amazonka.Data.Path toPath :: Text -> ByteString Source # |
Manipulating Paths
escapePath :: Path a -> EscapedPath Source #
escapePathTwice :: Path a -> TwiceEscapedPath Source #
Escape a path twice. Used when computing the SigV4 canonical path.
collapsePath :: Path a -> Path a Source #