Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionResponder(PTDiffusionJSON) Category Reference

Extension adding support for responding to requests using JSON values. More...

#include <PTDiffusionJSON.h>

Instance Methods

(void) - respondWithJSON:

Detailed Description

Extension adding support for responding to requests using JSON values.

Since
6.0

Method Documentation

◆ respondWithJSON:

- (void) respondWithJSON: (PTDiffusionJSON *) json

Dispatch a response to a request.

Parameters
jsonThe value to send in response.
Exceptions
NSInvalidArgumentExceptionRaised if the json argument is `nil`.
Since
6.0

Extends class PTDiffusionResponder.