ROHTTPBasedClientChannel

Overview

This protocol defines the set of methods specific to HTTP based client channels. The main goal is to operate with HTTP headers used for HTTP requests.

Location

Required Methods


clearHeaderFields

Clears all stored HTTP headers values.

- (void) clearHeaderFields

getValueOfHeaderField:

Returns the value of HTTP header with the specified name. If no header with this name exists the method returns nil. Headers lookup is case-insensitive.

- (NSString *) getValueOfHeaderField:(NSString *)name

Parameters:

  • name: Name of HTTP header to retrieve the value

setValue:forHeaderField:

Sets the value of HTTP header field with the specified name.

- (void) setValue:(NSString *)value forHeaderField:(NSString *)name

Parameters:

  • value: The value of the header to set
  • name: The name of the HTTP header to set value of

See Also

ROHTTPClientChannel ROSuperHTTPClientChannel