Show
Ignore:
Timestamp:
10/02/09 13:56:46 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1254491806 +0000
git-parent:

[65a01d99436a074114d89ea53959bfd58ccb7374]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1254491806 +0000
Message:

closes #196

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_rest.h

    r3c56016 rfc257c3  
    4848typedef int (*rest_request_handler)(noit_http_rest_closure_t *, 
    4949                                    int npats, char **pats); 
    50  
     50typedef noit_boolean (*rest_authorize_func_t)(noit_http_rest_closure_t *, 
     51                                              int npats, char **pats); 
    5152struct noit_http_rest_closure { 
    5253  noit_http_session_ctx *http_ctx; 
     
    6364API_EXPORT(void) noit_http_rest_init(); 
    6465 
     66API_EXPORT(noit_boolean) 
     67  noit_http_rest_client_cert_auth(noit_http_rest_closure_t *restc, 
     68                                  int npats, char **pats); 
     69 
    6570API_EXPORT(int) 
    6671  noit_http_rest_register(const char *method, const char *base, 
    6772                          const char *expression, rest_request_handler f); 
     73 
     74API_EXPORT(int) 
     75  noit_http_rest_register_auth(const char *method, const char *base, 
     76                               const char *expression, rest_request_handler f, 
     77                               rest_authorize_func_t auth); 
    6878 
    6979API_EXPORT(xmlDocPtr)