request.cookies.has('experiments')
clear()
Remove the Set-Cookie header from the request.
 request.cookies.clear()
nextUrl
Extends the native URL API with additional convenience methods, including Next.js specific properties.
 // Given a request to /home, pathname is /home
request.nextUrl.pathname
// Given a request to /home?name=lee, searchParams is { 'name': 'lee' }
request.nextUrl.searchParams
Version History
VersionChangesv13.0.0useSearchParams introduced.