Skip to content

Commit

Permalink
Added the ability to send custom HTTP headers for Rx.http.
Browse files Browse the repository at this point in the history
  • Loading branch information
dima committed Mar 10, 2009
1 parent 7a6e79c commit 9c7253c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/src/org/restfulx/controllers/AuxHTTPController.as
Expand Up @@ -238,6 +238,7 @@ package org.restfulx.controllers {
service.resultFormat = resultFormat;
service.useProxy = false;
service.contentType = contentType;
service.headers = Rx.customHttpHeaders;
service.url = rootUrl + url;

service.request = data;
Expand Down Expand Up @@ -296,10 +297,12 @@ package org.restfulx.controllers {
}

protected function defaultResultHandler(data:Object, token:Object = null):void {
CursorManager.removeBusyCursor();
if (resultHandler != null) resultHandler(data.result);
}

protected function defaultFaultHandler(info:Object, token:Object = null):void {
CursorManager.removeBusyCursor();
if (faultHandler != null) {
faultHandler(info);
} else {
Expand Down

0 comments on commit 9c7253c

Please sign in to comment.