You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
731 B

  1. #pragma once
  2. #include "request.h"
  3. namespace cppmicrohttpd
  4. {
  5. /**
  6. * @brief Request class to completely ignore the uploaded data.
  7. */
  8. struct ignore_post_data_request
  9. : public request
  10. {
  11. public:
  12. using request::request;
  13. /**
  14. * @brief Handle uploaded data.
  15. *
  16. * @param[in] p_data Received post data.
  17. * @param[in,out] p_size Number of bytes stored in postData.
  18. *
  19. * @retval true If the request is not yet finished.
  20. * @retval false If the request is finished.
  21. */
  22. bool handle_post_pata(
  23. const void * p_data,
  24. size_t& p_size) override;
  25. };
  26. }