Inherits from NSObject
Declared in WSCHttpContext.h

Overview

Used to pass the login information between the Http client and the Websocket client API. Also acts as a way for the client to pass any additional headers or client certificates to the WebSocket handshake.

Instance Methods

getHeader:

Gets all possible values of the header indicated by headerName.

- (NSArray *)getHeader:(NSString *)headerName

Parameters

headerName

header name

Return Value

String formatted values

Discussion

Gets all possible values of the header indicated by headerName.

Declared In

WSCHttpContext.h

getHeaders

Returns a map of the header fields and values.

- (NSDictionary *)getHeaders

Return Value

the headers map Dictionary of NSString -> NSArray

Discussion

Returns a map of the header fields and values.

Declared In

WSCHttpContext.h

getSSLContextRef

Gets the SSLContextRef.

- (SSLContextRef *)getSSLContextRef

Return Value

SSL context reference

Discussion

Gets the SSLContextRef.

Declared In

WSCHttpContext.h

initWithHttpContextBuilder:

Returns an initialized WSCHttpContext object.

- (instancetype)initWithHttpContextBuilder:(WSCHttpContextBuilder *)builder

Parameters

builder

HttpContextBuilder.

Discussion

Returns an initialized WSCHttpContext object.

Declared In

WSCHttpContext.h