
/*---------------------------------------------------------------------------*/
/* http_options_handler.h                                                    */
/* copyright (c) innovaphone 2016                                            */
/*                                                                           */
/*---------------------------------------------------------------------------*/

class HTTPOptionsHandler: public HTTPMethodHandler {
private:
    char * respFieldValue;

protected:

    virtual void OnPrepareHeader() override;
    virtual void OnSendMetaData(dword info, class ExtendedHeader & extHeader) override;
    virtual http_method_init_t OnHandlerInit(const HTTPParser * parser, byte * buffer, size_t size) override;

public:
    HTTPOptionsHandler(UHTTPMethodHandler * const user, class HTTPRegisteredPath * reqPathObj, class HTTPDataSource * dataSource, ISocket * const remoteSocket, IInstanceLog * const log, connection_flags_t connFlags);
    virtual ~HTTPOptionsHandler();
};
