NetworkRequestHeader

public struct NetworkRequestHeader

NetworkRequestHeader includes the header information in a network request.

Author

Adamas

Version

1.5.0

Date

02/04/2019
  • Initialize the structure.

    Declaration

    Swift

    public init(ifModifiedSince: String? = nil,
                ifNoneMatch: String? = nil,
                contentType: String? = nil,
                contentLength: Int? = nil)

    Parameters

    ifModifiedSince

    The last date that the data has been modified on the server.

    ifNoneMatch

    If the tag doesn’t match.

    contentType

    The type of the body.

    contentLength

    The length of the content.