-
Notifications
You must be signed in to change notification settings - Fork 1
URLEncodedFormEncoder_KeyEncoding
Encoding to use for keys.
public enum KeyEncoding
This type is derived from JSONEncoder
's KeyEncodingStrategy
and XMLEncoder
s KeyEncodingStrategy
.
Use the keys specified by each type. This is the default encoding.
case useDefaultKeys
Convert from "camelCaseKeys" to "snake_case_keys" before writing a key.
case convertToSnakeCase
Capital characters are determined by testing membership in
CharacterSet.uppercaseLetters
and CharacterSet.lowercaseLetters
(Unicode General Categories Lu and Lt).
The conversion to lower case uses Locale.system
, also known as
the ICU "root" locale. This means the result is consistent
regardless of the current user's locale and language preferences.
Converting from camel case to snake case:
- Splits words at the boundary of lower-case to upper-case
- Inserts
_
between words - Lowercases the entire string
- Preserves starting and ending
_
.
For example, oneTwoThree
becomes one_two_three
. _oneTwoThree_
becomes _one_two_three_
.
Same as convertToSnakeCase, but using -
instead of _
.
For example oneTwoThree
becomes one-two-three
.
case convertToKebabCase
Capitalize the first letter only.
For example oneTwoThree
becomes OneTwoThree
.
case capitalized
Uppercase all letters.
For example oneTwoThree
becomes ONETWOTHREE
.
case uppercased
Lowercase all letters.
For example oneTwoThree
becomes onetwothree
.
case lowercased
A custom encoding using the provided closure.
case custom(: (String) -> String)
Generated at 2020-09-24T22:11:06+0000 using swift-doc 1.0.0-beta.4.
Types
- AF
- AFError
- AFError.MultipartEncodingFailureReason
- AFError.ParameterEncoderFailureReason
- AFError.ParameterEncoderFailureReason.RequiredComponent
- AFError.ParameterEncodingFailureReason
- AFError.ResponseSerializationFailureReason
- AFError.ResponseValidationFailureReason
- AFError.ServerTrustFailureReason
- AFError.ServerTrustFailureReason.Output
- AFError.URLRequestValidationFailureReason
- Adapter
- AlamofireExtension
- AlamofireNotifications
- ClosureEventMonitor
- CompositeEventMonitor
- CompositeTrustEvaluator
- ConnectionLostRetryPolicy
- DataRequest
- DataResponse
- DataResponseSerializer
- DecodableResponseSerializer
- DefaultTrustEvaluator
- DisabledEvaluator
- DownloadRequest
- DownloadRequest.Downloadable
- DownloadRequest.Options
- DownloadResponse
- Empty
- GoogleXSSIPreprocessor
- HTTPHeader
- HTTPHeaders
- HTTPMethod
- Interceptor
- JSONEncoding
- JSONParameterEncoder
- JSONResponseSerializer
- MultipartFormData
- NetworkReachabilityManager
- NetworkReachabilityManager.NetworkReachabilityStatus
- NetworkReachabilityManager.NetworkReachabilityStatus.ConnectionType
- PassthroughPreprocessor
- PinnedCertificatesTrustEvaluator
- PublicKeysTrustEvaluator
- Redirector
- Redirector.Behavior
- Request
- Request.State
- ResponseCacher
- ResponseCacher.Behavior
- Retrier
- RetryPolicy
- RetryResult
- RevocationTrustEvaluator
- RevocationTrustEvaluator.Options
- ServerTrustManager
- Session
- SessionDelegate
- StringResponseSerializer
- URLEncodedFormEncoder
- URLEncodedFormEncoder.ArrayEncoding
- URLEncodedFormEncoder.BoolEncoding
- URLEncodedFormEncoder.DataEncoding
- URLEncodedFormEncoder.DateEncoding
- URLEncodedFormEncoder.Error
- URLEncodedFormEncoder.KeyEncoding
- URLEncodedFormEncoder.SpaceEncoding
- URLEncodedFormParameterEncoder
- URLEncodedFormParameterEncoder.Destination
- URLEncoding
- URLEncoding.ArrayEncoding
- URLEncoding.BoolEncoding
- URLEncoding.Destination
- UploadRequest
- UploadRequest.Uploadable
Protocols
- AlamofireExtended
- CachedResponseHandler
- DataDecoder
- DataPreprocessor
- DataResponseSerializerProtocol
- DownloadResponseSerializerProtocol
- EmptyResponse
- EventMonitor
- ParameterEncoder
- ParameterEncoding
- RedirectHandler
- RequestAdapter
- RequestDelegate
- RequestInterceptor
- RequestRetrier
- ResponseSerializer
- ServerTrustEvaluating
- URLConvertible
- URLRequestConvertible
- UploadConvertible
- UploadableConvertible