code: func parseHttpHandlerConfig(configParams interface{}) (*HttpHandlerConfig, error) {
  	var config HttpHandlerConfig
  	if err := mapstructure.Decode(configParams, &config); err != nil {
  		return nil, err
  	}
  
  	if config.Path == "" {
  		return nil, fmt.Errorf("Requires 'path' to be set")
  	}
  	if config.Method == "" {
  		config.Method = "POST"
  	}
  	if config.TimeoutRaw == "" {
  		config.Timeout = DefaultTimeout
  	} else if timeout, err := time.ParseDuration(config.TimeoutRaw); err != nil {
  		return nil, fmt.Errorf(fmt.Sprintf("Failed to parse timeout: %v", err))
  	} else {
  		config.Timeout = timeout
  	}
  
  	return &config, nil
  }
docs: // Parse the 'http_handler_config' parameters