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

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

url

The URL of this request.

@property (nonatomic, copy) NSURL *url

Discussion

The URL of this request.

Declared In

FSCheckContentTypeRequest.h

xml

The property is true if the URL contains XML data.

@property (nonatomic, readonly) BOOL xml

Discussion

The property is true if the URL contains XML data.

Declared In

FSCheckContentTypeRequest.h

Instance Methods

cancel

Cancels the request.

- (void)cancel

Discussion

Cancels the request.

Declared In

FSCheckContentTypeRequest.h

start

Starts the request.

- (void)start

Discussion

Starts the request.

Declared In

FSCheckContentTypeRequest.h