Class SimpleHttpExchange


  • public abstract class SimpleHttpExchange
    extends Object
    This class is a simplified implementation of HttpExchange.
    This class provides methods to process requests from the client and send a response back. The handler will keep executing until a response is sent.

    Get/post type requests for application/x-www-form-urlencoded (default) will be a simple key/value map.
    Get/post type requests for multipart/form-data will use an expanded map.
    Example:
          {
              "name_of_key" : {
                  "headers": { },
                  "value": ""
              },
              "name_of_file_key": {
                  "headers": {
                      "Content-Disposition": {
                          "header-name": "Content-Disposition",
                          "header-value": "form-data",
                          "parameters": {
                              "filename": "file.txt",
                              "name": "file"
                          }
                      },
                      "Content-Type": {
                          "header-name": "Content-Type",
                          "header-value": "text/plain",
                          "parameters": {}
                      }
                  },
                  "value": "value in bytes"
              }
          }
     
    If a file is submitted the value will be in bytes unless it is plain text.
    Since:
    02.00.00
    Version:
    03.04.03
    Author:
    Ktt Development
    See Also:
    HttpExchange