BSB Developer Docs
Loading...
Searching...
No Matches
HttpHandler Struct Reference

Public Types

enum  { HttpHandlerCustom , HttpHandlerFile , HttpHandlerDir }
 

Data Fields

char * uri
 
HttpMethod method
 
enum HttpHandler:: { ... }  type
 
union { 
 
   struct { 
 
      char *   path 
 
      char *   mime_types_custom 
 
      char *   extra_headers 
 
   }  
 
   struct { 
 
      void *(*   ctx_alloc )(void) 
 
      void(*   ctx_free )(void *) 
 
      bool(*   on_request )(FuriString *path, HttpMethod
         method, struct mg_connection
         *conn, struct mg_http_message
         *msg, void *ctx) 
 
      bool(*   on_headers )(FuriString *path, HttpMethod
         method, struct mg_connection
         *conn, struct mg_http_message
         *msg, void *ctx) 
 
   }  
 
};  
 

The documentation for this struct was generated from the following file: