Back to Kitura

Structures

docs/Structs.html

3.0.12.6 KB
Original Source

Structures

The following structures are available globally.

`

                AdditionalCookieAttribute
                `

Describes an optional attribute of a cookie.

See more

Declaration

Swift

public struct AdditionalCookieAttribute

`

                CodableHelpers
                `

Building blocks for Codable routing, intended for convenience when implementing extensions to the Router that interoperate with Codable types.

See more

Declaration

Swift

public struct CodableHelpers

`

                HTTPVersion
                `

The version of HTTP protocol.

HTTP uses a “major.minor” numbering scheme to indicate versions of the protocol.

See more

Declaration

Swift

public struct HTTPVersion

`

                Headers
                `

The struct containing the HTTP headers and implements the headers APIs for the RouterRequest and RouterResponse classes.

See more

Declaration

Swift

public struct Headers
extension Headers: Collection

SSLConfig

`

                SSLConfig
                `

A struct that allows you to configure your SSL using a CA certificate file (Linux), a CA certificate directory (Linux) or a certificate chain file (MacOS).

See more

Declaration

Swift

public struct SSLConfig

`

                SwaggerDocument
                `

Undocumented

See more

Declaration

Swift

public struct SwaggerDocument : Encodable

`

                Part
                `

A part of a parsed multi-part form body.

See more

Declaration

Swift

public struct Part

`

                MediaType
                `

The media type (formerly known as MIME type) is a standardized way to indicate the nature and format of a document. This struct consists of a catagorical topLevelType and specific subtype seperated by a “/” (e.g. “text/plain”). In HTTP, The media type is sent as the first section of the “Content-Type” header and is case insensitive.

Usage Example:

let mediaType = MediaType(type: .application, subtype: "json")
print(mediaType.description)
// Prints ("application/json")

See more

Declaration

Swift

public struct MediaType : CustomStringConvertible
extension MediaType: Equatable
extension MediaType: Hashable