- Sort Score
- Result 10 results
- Languages All
Results 41 - 42 of 42 for pathValue (0.33 sec)
-
src/net/http/request.go
} } return nil, nil, ErrMissingFile } // PathValue returns the value for the named path wildcard in the [ServeMux] pattern // that matched the request. // It returns the empty string if the request was not matched against a pattern // or there is no such wildcard in the pattern. func (r *Request) PathValue(name string) string { if i := r.patIndex(name); i >= 0 { return r.matches[i] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 49.4K bytes - Viewed (0) -
src/net/http/server.go
// (Therefore it is invalid for a "..." wildcard to appear anywhere but at the end of a pattern.) // The match for a wildcard can be obtained by calling [Request.PathValue] with the wildcard's name. // A trailing slash in a path acts as an anonymous "..." wildcard. // // The special wildcard {$} matches only the end of the URL. // For example, the pattern "/{$}" matches only the path "/",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0)