···237237 }
238238}
239239240240-// TODO: test
241241-// TODO: document
240240+/// Return the non-empty segments of a request path.
241241+///
242242+/// # Examples
243243+///
244244+/// ```gleam
245245+/// > request.new()
246246+/// > |> request.set_path("/one/two/three")
247247+/// > |> wisp.path_segments
248248+/// ["one", "two", "three"]
249249+/// ```
250250+///
242251pub const path_segments = request.path_segments
243252244244-// TODO: test
245253/// This function overrides an incoming POST request with a method given in
246254/// the request's `_method` query paramerter. This is useful as web browsers
247255/// typically only support GET and POST requests, but our application may