MCPcopy Index your code
hub / github.com/dnote/dnote / ServeHTTP

Method ServeHTTP

pkg/server/views/view.go:89–91  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

87}
88
89func (v *View) ServeHTTP(w http.ResponseWriter, r *http.Request) {
90 v.Render(w, r, nil, http.StatusOK)
91}
92
93// Render is used to render the view with the predefined layout
94func (v *View) Render(w http.ResponseWriter, r *http.Request, data *Data, statusCode int) {

Callers 8

LoggingFunction · 0.80
methodOverrideFunction · 0.80
AuthFunction · 0.80
TokenAuthFunction · 0.80
GuestOnlyFunction · 0.80
LimitMethod · 0.80
TestLimitFunction · 0.80
TestLimit_DifferentIPsFunction · 0.80

Calls 1

RenderMethod · 0.95

Tested by 2

TestLimitFunction · 0.64
TestLimit_DifferentIPsFunction · 0.64