import { getEnvConfigOrElseAsBoolean } from '@marblejs/core/dist/+internal/utils' ; import { IO } from 'fp-ts/lib/IO' ; since export const MARBLE_HTTP_HEADERS_NORMALIZATION_ENV_KEY = 'MARBLE_HTTP_HEADERS_NORMALIZATION' ; since export const MARBLE_HTTP_REQUEST_METADATA_ENV_KEY = 'MARBLE_HTTP_REQUEST_METADATA' ; type HttpModuleConfiguration = Readonly < { useHttpHeadersNormalization : IO < boolean > ; useHttpRequestMetadata : IO < boolean > ; } > ; since export const provideConfig = ( ) => ( { useHttpHeadersNormalization : getEnvConfigOrElseAsBoolean ( MARBLE_HTTP_HEADERS_NORMALIZATION_ENV_KEY , true ) , useHttpRequestMetadata : getEnvConfigOrElseAsBoolean ( MARBLE_HTTP_REQUEST_METADATA_ENV_KEY , false ) , } ) ;