LRResty category for PATCH support | ASSIST Software Romania
get in touch
>

LIKE

SHARE

Facebook Share Tweet LinkedIn Share

FOLLOW

LinkedIn Follow Xing Follow
Ovidiu Nitan

iOS Developer at ASSIST

LRResty is a simple to use library for Objective-C useful for accessing REST-based APIs. Its development is discontinued now and developers are encouraged to use other libraries instead (such ASIHTTPRequest) but LRResty is easier to use and more adapted for REST services.

One of the issues with LRResty is that it doesn't support HTTP PATCH operations. Fortunately is not really hard to add support for this, starting from the other routines which offer support for other operations, such as GET or PUT. This Objective-C category adds support for PATCH and is designed for ARC-based version of LRResty. This category is offered as it is, and you can modify or use it without any restriction.

#pragma mark -
#pragma mark Delegate API

/**
 Performs a PATCH request with a payload on URL with delegate response handling.
 @param urlString   The URL to request.
 @param payload     The object to PATCH.
 @param delegate    The response delegate.
 @returns The request object.
 @see LRRestyRequestPayload
 */
 - (LRRestyRequest *)patch:(NSString *)urlString payload:(id)payload delegate:(id<lrrestyclientresponsedelegate>)delegate;

/**
 Performs a PATCH request with a payload on URL with delegate response handling.
 @param urlString   The URL to request.
 @param delegate    The response delegate.
 @returns The request object.
 @see LRRestyRequestPayload
 */
 - (LRRestyRequest *)patch:(NSString *)urlString payload:(id)payload headers:(NSDictionary *)headers delegate:(id<lrrestyclientresponsedelegate>)delegate;

Download

Möchten Sie mit uns in Kontakt treten?

Wenn Sie an unseren Softwareentwicklungsdienstleistungen interessiert sind, sich unserem Team anschließen möchten oder einfach mehr über uns erfahren möchten, würden wir uns freuen, von Ihnen zu hören! Schreiben Sie uns ein paar Zeilen und ein Mitglied des ASSIST-Teams wird sich so schnell wie möglich bei Ihnen melden. Wir sind sicher, dass wir Ihnen helfen können.

SETZEN SIE SICH MIT UNS IN VEBINDUNG!