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
-
urlproperty -
onCompletionproperty -
onFailureproperty -
formatproperty -
contentTypeproperty -
playlistproperty -
xmlproperty -
– start -
– cancel
Properties
contentType
Containts the content type of the URL upon completion of the request.
@property (nonatomic, readonly) NSString *contentTypeDiscussion
Containts the content type of the URL upon completion of the request.
Declared In
FSCheckContentTypeRequest.hformat
Contains the format of the URL upon completion of the request.
@property (nonatomic, readonly) FSFileFormat formatDiscussion
Contains the format of the URL upon completion of the request.
Declared In
FSCheckContentTypeRequest.honCompletion
Called when the content type determination is completed.
@property (copy) void ( ^ ) ( ) onCompletionDiscussion
Called when the content type determination is completed.
Declared In
FSCheckContentTypeRequest.honFailure
Called if the content type determination failed.
@property (copy) void ( ^ ) ( ) onFailureDiscussion
Called if the content type determination failed.
Declared In
FSCheckContentTypeRequest.hplaylist
The property is true if the URL contains a playlist.
@property (nonatomic, readonly) BOOL playlistDiscussion
The property is true if the URL contains a playlist.
Declared In
FSCheckContentTypeRequest.h