Safe Haskell | None |
---|---|
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
- useBackendOnlyPermissionsHeader :: IsString a => a
- getRequestHeader :: HeaderName -> [Header] -> Maybe ByteString
- parseStringAsBool :: String -> Either String Bool
- quoteRegex :: CompOption -> ExecOption -> String -> Q (TExp Regex)
- fmapL :: (a -> a') -> Either a b -> Either a' b
- generateFingerprint :: IO Text
- httpExceptToJSON :: HttpException -> Value
- commonClientHeadersIgnored :: IsString a => [a]
- sessionVariablePrefix :: Text
- isSessionVariable :: Text -> Bool
- isReqUserId :: Text -> Bool
- mkClientHeadersForward :: [Header] -> [Header]
- mkSetCookieHeaders :: Response a -> ResponseHeaders
- filterRequestHeaders :: [Header] -> [Header]
- filterHeaders :: HashSet HeaderName -> [Header] -> [Header]
- data APIVersion
- englishList :: Text -> NonEmpty Text -> Text
- makeReasonMessage :: [a] -> (a -> Text) -> Text
- executeJSONPath :: JSONPath -> Value -> IResult Value
- sha1 :: ByteString -> ByteString
- 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
- sensitiveHeaders :: HashSet HeaderName
- 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 #
useBackendOnlyPermissionsHeader :: IsString a => a Source #
getRequestHeader :: HeaderName -> [Header] -> Maybe ByteString Source #
quoteRegex :: CompOption -> ExecOption -> String -> Q (TExp Regex) Source #
Quotes a regex using Template Haskell so syntax errors can be reported at compile-time.
generateFingerprint :: IO Text Source #
httpExceptToJSON :: HttpException -> Value Source #
commonClientHeadersIgnored :: IsString a => [a] Source #
sessionVariablePrefix :: Text Source #
isSessionVariable :: Text -> Bool Source #
isReqUserId :: Text -> Bool Source #
mkClientHeadersForward :: [Header] -> [Header] Source #
mkSetCookieHeaders :: Response a -> ResponseHeaders Source #
filterRequestHeaders :: [Header] -> [Header] Source #
filterHeaders :: HashSet HeaderName -> [Header] -> [Header] Source #
data APIVersion Source #
The version integer
Instances
Eq APIVersion Source # | |
Defined in Hasura.Server.Utils (==) :: APIVersion -> APIVersion -> Bool # (/=) :: APIVersion -> APIVersion -> Bool # | |
Show APIVersion Source # | |
Defined in Hasura.Server.Utils showsPrec :: Int -> APIVersion -> ShowS # show :: APIVersion -> String # showList :: [APIVersion] -> ShowS # | |
FromJSON APIVersion Source # | |
Defined in Hasura.Server.Utils parseJSON :: Value -> Parser APIVersion parseJSONList :: Value -> Parser [APIVersion] | |
ToJSON APIVersion Source # | |
Defined in Hasura.Server.Utils toJSON :: APIVersion -> Value toEncoding :: APIVersion -> Encoding toJSONList :: [APIVersion] -> Value toEncodingList :: [APIVersion] -> Encoding |
englishList :: Text -> NonEmpty Text -> Text Source #
makeReasonMessage :: [a] -> (a -> Text) -> Text Source #
executeJSONPath :: JSONPath -> Value -> IResult Value Source #
sha1 :: ByteString -> ByteString Source #
cryptoHash :: ToJSON a => a -> ByteString 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 # |
sensitiveHeaders :: HashSet HeaderName Source #
redactSensitiveHeader :: Header -> Header Source #