Enumerations
The following enumerations are available globally.
-
The HttpData enum is an empty enumeration that is merely used to put different implementations of
See moreHttpBody
into a common scope. Out of the box, Squid providesHttpData.Empty
,HttpData.Json
andHttpData.Image
which all implement theHttpBody
protocol.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 moreDeclaration
Swift
public enum HttpMethod
-
This enum provides commonly used MIME types that are e.g. provided in HTTP requests’ ‘Content-Type’ header field.
See moreDeclaration
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 moreDeclaration
Swift
public enum RequestPriority