Module mod_ocs_rest_patch

Handle received HTTP PATCH requests.

Copyright © 2016 - 2026 SigScale Global Inc.

Description

Handle received HTTP PATCH requests.

This is an httpd callback module handling HTTP PATCH operations. The HTTP resources are managed in modules named ocs_rest_res_*.

Resource Handler Functions

The resource handler modules should implement callback functions in the pattern described in the example below.

patch_<Resource>/2

patch_<Resource>(Id, ContentType, RequestBody, [...]) -> Result

Resource handlers for HTTP PATCH operations on REST Resources.

Response Headers must include content_type if ResponseBody is not en empty list. An optional Problem report may be provided in error responses which shall be formatted by format_problem/2 and included in the response body.

Function Index

do/1Erlang web server API callback function.
get_etag/1*

Function Details

do/1

do(ModData) -> Result

Erlang web server API callback function.

get_etag/1 *

get_etag(Headers) -> any()


Generated by EDoc