Re: Integrating a third party library

2015-02-26 Thread Willy Tarreau
On Thu, Feb 26, 2015 at 08:30:45AM +0100, Baptiste wrote: and 2. how could we write a new function in HAProxy which takes a buffer of data in entry and can return a string (or buffer of data) I think that what you want to implement is a sample fetch function. For example, take a look

Re: Integrating a third party library

2015-02-25 Thread Willy Tarreau
Hi Mike, On Wed, Feb 25, 2015 at 09:41:35AM +, Mike Zoom wrote: Hi everyone! I want to integrate a third party library, open source, under the Mozilla Public licence v2. The main role of this library is to process an HTTP request header and to return a string which describes the

Re: Integrating a third party library

2015-02-25 Thread Baptiste
and 2. how could we write a new function in HAProxy which takes a buffer of data in entry and can return a string (or buffer of data) I think that what you want to implement is a sample fetch function. For example, take a look at the recently introduced req.hdr_names function, which

Integrating a third party library

2015-02-25 Thread Mike Zoom
Hi everyone! I want to integrate a third party library, open source, under the Mozilla Public licence v2. The main role of this library is to process an HTTP request header and to return a string which describes the client. Basically, we have the following questions: 1. how could we link our