PlainTextResponse

public protocol PlainTextResponse : Decodable

A response type that is initialized directly from plain text instead of JSON.

  • The plain text.

    Declaration

    Swift

    var text: String { get }
  • Creates a response from the plain text returned by the server.

    Declaration

    Swift

    static func from(text: String) -> Self

    Parameters

    text

    The plain text for the response.