🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators RestHead
This page was created by Vale.buyondo on 2026-03-02. Last edited by 62.169.16.147 on 2026-09-12.

RestHead performs an HTTP HEAD request to a URL. It is identical to RestGet except the server returns only the response headers not the body. This makes it useful for:

  • Checking if a resource exists (via status code)
  • Reading metadata like Content-Length, Content-Type, Last-Modified
  • Verifying API availability without downloading data
  • Checking authentication before making a full request

How It Works in MDriven[edit source]

Like all Rest operators in MDriven, RestHead is available on the selfVM variable and is used inside an EAL action on a ViewModel.

Syntax

selfVM.RestHead('https://yourapi.com/endpoint','','','YourNestingName')