FSCheckContentTypeRequest Class Reference
Inherits from | NSObject |
Conforms to | NSURLSessionDelegate |
Declared in | FSCheckContentTypeRequest.h |
Overview
FSCheckContentTypeRequest is a class for checking the content type of a URL. It makes an HTTP HEAD request and parses the header information from the server. The resulting format is stored in the format property.
To use the class, define the URL for checking the content type using the url property. Then, define the onCompletion and onFailure handlers. To start the request, use the start method.
Tasks
-
url
property -
onCompletion
property -
onFailure
property -
format
property -
contentType
property -
playlist
property -
xml
property -
– start
-
– cancel
Properties
contentType
Containts the content type of the URL upon completion of the request.
@property (nonatomic, readonly) NSString *contentType
Discussion
Containts the content type of the URL upon completion of the request.
Declared In
FSCheckContentTypeRequest.h
format
Contains the format of the URL upon completion of the request.
@property (nonatomic, readonly) FSFileFormat format
Discussion
Contains the format of the URL upon completion of the request.
Declared In
FSCheckContentTypeRequest.h
onCompletion
Called when the content type determination is completed.
@property (copy) void ( ^ ) ( ) onCompletion
Discussion
Called when the content type determination is completed.
Declared In
FSCheckContentTypeRequest.h
onFailure
Called if the content type determination failed.
@property (copy) void ( ^ ) ( ) onFailure
Discussion
Called if the content type determination failed.
Declared In
FSCheckContentTypeRequest.h
playlist
The property is true if the URL contains a playlist.
@property (nonatomic, readonly) BOOL playlist
Discussion
The property is true if the URL contains a playlist.
Declared In
FSCheckContentTypeRequest.h