#Httprouter
8 articles
08 Create Middleware Router
Understanding Middleware HttpRouter is a library for creating an http router, it doesn’t have any other features apart from a router and this router is an implementation of the default http.
07 Handle Not Allowed Method
Understanding Method Not Allowed When we use ServerMux, we cannot determine what HTTP Method we will use in the Handler.
06 Handle Not Found Page
Understanding Not Found Handler Apart from the Router being able to control panic, it can also have a handler for pages not found or what we often call pages that cannot be accessed.
05 Learn About Panic Handler
Understanding Panic Handlers When we create logic in the handler, we must think of a case where panic occurs, then what should we do?
04 Learn About Serve File
Understanding File Server In the material Creating Golang Web. So the Router also supports serving static files using the ServeFiles(Path, FileSystem) function where in Path we have to use Catch All Parameters.
03 Learn About Route Pattern
Use of Named Parameter Does the Pattern Router have a Pattern?
02 Learning About HTTP Router Params
Use of HTTP Router Params The httprouter.Handle has an additional parameter, namely Params, which is used to store parameters sent from the client, but this Params is not a query for parameters but is a parameter from the URL.
01 Introduction HTTP Router
Introduction HttpRouter is a popular open source library for HTTP Handler in Golang.