Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.06 KB

HttpFileRouter.md

File metadata and controls

60 lines (37 loc) · 1.06 KB

HttpFileRouter

Extends: HttpRouter < Reference

Description

Class inheriting HttpRouter for handling file serving requests

Property Descriptions

path

var path: String = ""

Full path to the folder which will be exposed to web

fallback_page

var fallback_page: String = ""

Full path to the fallback page which will be served if the requested file was not found

extensions

var extensions: PoolStringArray

An ordered list of extensions that will be checked if no file extension is provided by the request

exclude_extensions

var exclude_extensions: PoolStringArray

A list of extensions that will be excluded if requested

Method Descriptions

_init

func _init(path: String, options: Dictionary) -> void

handle_get

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

Handle a GET request