Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- jsonHeader :: Header
- sqlHeader :: Header
- gzipHeader :: Header
- userRoleHeader :: IsString a => a
- deprecatedAccessKeyHeader :: IsString a => a
- adminSecretHeader :: IsString a => a
- userIdHeader :: IsString a => a
- requestIdHeader :: IsString a => a
- contentLengthHeader :: IsString a => a
- useBackendOnlyPermissionsHeader :: IsString a => a
- getRequestHeader :: HeaderName -> [Header] -> Maybe ByteString
- parseStringAsBool :: String -> Either String Bool
- quoteRegex :: CompOption -> ExecOption -> String -> Code Q Regex
- fmapL :: (a -> a') -> Either a b -> Either a' b
- generateFingerprint :: IO Text
- httpExceptToJSON :: HttpException -> Value
- commonClientHeadersIgnored :: IsString a => [a]
- sessionVariablePrefix :: Text
- isReqUserId :: Text -> Bool
- mkClientHeadersForward :: [Header] -> [Header]
- mkSetCookieHeaders :: Response a -> ResponseHeaders
- filterHeaders :: HashSet HeaderName -> [Header] -> [Header]
- data APIVersion
- englishList :: Text -> NonEmpty Text -> Text
- makeReasonMessage :: [a] -> (a -> Text) -> Text
- executeJSONPath :: JSONPath -> Value -> IResult Value
- cryptoHash :: ToJSON a => a -> ByteString
- readIsoLevel :: String -> Either String TxIsolation
- parseConnLifeTime :: Maybe NominalDiffTime -> Maybe NominalDiffTime
- newtype EnvVarsMovedToMetadata = EnvVarsMovedToMetadata {}
- newtype DeprecatedEnvVars = DeprecatedEnvVars {}
- envVarsMovedToMetadata :: EnvVarsMovedToMetadata
- deprecatedEnvVars :: DeprecatedEnvVars
- redactSensitiveHeader :: Header -> Header
Documentation
jsonHeader :: Header Source #
gzipHeader :: Header Source #
userRoleHeader :: IsString a => a Source #
deprecatedAccessKeyHeader :: IsString a => a Source #
adminSecretHeader :: IsString a => a Source #
userIdHeader :: IsString a => a Source #
requestIdHeader :: IsString a => a Source #
contentLengthHeader :: IsString a => a Source #
useBackendOnlyPermissionsHeader :: IsString a => a Source #
getRequestHeader :: HeaderName -> [Header] -> Maybe ByteString Source #
quoteRegex :: CompOption -> ExecOption -> String -> Code Q Regex Source #
Quotes a regex using Template Haskell so syntax errors can be reported at compile-time.
commonClientHeadersIgnored :: IsString a => [a] Source #
isReqUserId :: Text -> Bool Source #
mkClientHeadersForward :: [Header] -> [Header] Source #
mkSetCookieHeaders :: Response a -> ResponseHeaders Source #
filterHeaders :: HashSet HeaderName -> [Header] -> [Header] Source #
data APIVersion Source #
The version integer
Instances
FromJSON APIVersion Source # | |
Defined in Hasura.Server.Utils parseJSON :: Value -> Parser APIVersion Source # parseJSONList :: Value -> Parser [APIVersion] Source # | |
ToJSON APIVersion Source # | |
Defined in Hasura.Server.Utils toJSON :: APIVersion -> Value Source # toEncoding :: APIVersion -> Encoding Source # toJSONList :: [APIVersion] -> Value Source # toEncodingList :: [APIVersion] -> Encoding Source # | |
Show APIVersion Source # | |
Defined in Hasura.Server.Utils showsPrec :: Int -> APIVersion -> ShowS # show :: APIVersion -> String # showList :: [APIVersion] -> ShowS # | |
Eq APIVersion Source # | |
Defined in Hasura.Server.Utils (==) :: APIVersion -> APIVersion -> Bool # (/=) :: APIVersion -> APIVersion -> Bool # |
makeReasonMessage :: [a] -> (a -> Text) -> Text Source #
cryptoHash :: ToJSON a => a -> ByteString Source #
readIsoLevel :: String -> Either String TxIsolation Source #
newtype EnvVarsMovedToMetadata Source #
The environment variables that were moved to metadata. These environment variables are available if a v1 hasura project is run an v2 hasura server. These environment variables are marked as deprecated only when the v1 hasura project is migrated to v2 project.
Instances
Show EnvVarsMovedToMetadata Source # | |
Defined in Hasura.Server.Utils showsPrec :: Int -> EnvVarsMovedToMetadata -> ShowS # show :: EnvVarsMovedToMetadata -> String # showList :: [EnvVarsMovedToMetadata] -> ShowS # |
newtype DeprecatedEnvVars Source #
These env vars are completely deprecated
Instances
Show DeprecatedEnvVars Source # | |
Defined in Hasura.Server.Utils showsPrec :: Int -> DeprecatedEnvVars -> ShowS # show :: DeprecatedEnvVars -> String # showList :: [DeprecatedEnvVars] -> ShowS # |
redactSensitiveHeader :: Header -> Header Source #