Ktt-Development / simplehttpserver

SimpleHttpServer :: Simplified implementation of the sun http server :: Simplified handlers to execute complex operations

Home Page:https://github.com/Ktt-Development/simplehttpserver/tree/main/docs

Repository from Github https://github.comKtt-Development/simplehttpserverRepository from Github https://github.comKtt-Development/simplehttpserver

IllegalArgumentException on root handler in not root context

Katsute opened this issue · comments

Prerequisites

If all checks are not passed then the request will be closed

  • I have checked that no other similar feature request already exists
  • The feature request makes sense for the project

Proposal

Describe the feature that should be added
Throw an illegal argument exception if the root handler is added to a context that isn't /

Reasoning

Explain why this feature should be added
This handler is only intended and functional for the / context.