Enumerations

The following enumerations are available globally.

  • The HttpData enum is an empty enumeration that is merely used to put different implementations of HttpBody into a common scope. Out of the box, Squid provides HttpData.Empty, HttpData.Json and HttpData.Image which all implement the HttpBody protocol.

    See more

    Declaration

    Swift

    public enum HttpData
  • This enum represents available HTTP methods for requests sent via the Squid library. Currently, only the default REST methods are supported. Namely GET, POST, PUT, and DELETE.

    See more

    Declaration

    Swift

    public enum HttpMethod
  • This enum provides commonly used MIME types that are e.g. provided in HTTP requests’ ‘Content-Type’ header field.

    See more

    Declaration

    Swift

    public enum HttpMimeType : String
  • The request priority can be used to govern how important a specific request is considered, i.e. whether it must be scheduled right away or it can be scheduled some time in the background. Currently, request priorities only influence the priority of the dispatch queue used to schedule requests. However, in the future, request priorities might get integrated more deeply into Squid and allow for more fine-grained control over the point in time when requests are scheduled.

    See more

    Declaration

    Swift

    public enum RequestPriority