Skip to content

Latest commit

 

History

History
67 lines (41 loc) · 1.11 KB

HttpRouter.md

File metadata and controls

67 lines (41 loc) · 1.11 KB

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