godottpd

HttpRouter

Extends: Reference

Description

A base class for all HTTP routers

Method Descriptions

handle_get

func handle_get(request: HttpRequest, response: HttpResponse) -> void

Handle a GET request

handle_post

func handle_post(request: HttpRequest, response: HttpResponse) -> void

Handle a POST request

handle_head

func handle_head(request: HttpRequest, response: HttpResponse) -> void

Handle a HEAD request

handle_put

func handle_put(request: HttpRequest, response: HttpResponse) -> void

Handle a PUT request

handle_patch

func handle_patch(request: HttpRequest, response: HttpResponse) -> void

Handle a PATCH request

handle_delete

func handle_delete(request: HttpRequest, response: HttpResponse) -> void

Handle a DELETE request

handle_options

func handle_options(request: HttpRequest, response: HttpResponse) -> void

Handle an OPTIONS request