Skip to content

liseen/ngx-post-handler-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name
    nginx-post-handler-module -load a dynamic libray processed post data and
    return the processed string, this's api is:

    typedef struct {
        char name[256];
        void * (*init)(const char* conf_file);
        char * (*process)(void *handler, const char* input);
	    int (*uninit)(void *handler);
    } post_handler_worker;

Version
    0.02

Synopsis
    location /parser {
        post_handler parser parser.conf
    }

    pushd demo/parrot
    make
    popd
    export PATH=/opt/nginx/sbin:$PATH
    export LD_LIBRARY_PATH=`pwd`/demo/parrot:$LD_LIBRARY_PATH

    cd test
    prove t/

    or you can test by curl
        curl -d abc http://localhost:1984/parrot
    get:
        abcabcabcabcabc

Compile and Install:
    install pcre library
    modify the build script
    sudo ./build

Test
    cd ngx-post-handlermodule
    cd test
    prove t/*.t


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages