| 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 |
Amazonka.Data.Path
Description
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 #
Constructors
| Raw :: [ByteString] -> Path 'NoEncoding | |
| Encoded :: [ByteString] -> Path 'Percent |
Instances
| ToByteString EscapedPath Source # | |
Defined in Amazonka.Data.Path Methods toBS :: EscapedPath -> ByteString Source # | |
| ToLog EscapedPath Source # | |
Defined in Amazonka.Data.Log Methods 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 Methods toBS :: TwiceEscapedPath -> ByteString Source # | |
| Show TwiceEscapedPath Source # | |
Defined in Amazonka.Data.Path Methods showsPrec :: Int -> TwiceEscapedPath -> ShowS # show :: TwiceEscapedPath -> String # showList :: [TwiceEscapedPath] -> ShowS # | |
| Eq TwiceEscapedPath Source # | |
Defined in Amazonka.Data.Path Methods (==) :: TwiceEscapedPath -> TwiceEscapedPath -> Bool # (/=) :: TwiceEscapedPath -> TwiceEscapedPath -> Bool # | |
Constructing Paths
Methods
toPath :: a -> ByteString Source #
Instances
| ToPath ByteString Source # | |
Defined in Amazonka.Data.Path Methods toPath :: ByteString -> ByteString Source # | |
| ToPath Text Source # | |
Defined in Amazonka.Data.Path Methods 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 #