Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Define response headers #3

Description

@RETFU

Examples:

  • uniq request id
  • complete version

See http://stackoverflow.com/questions/3561381/custom-http-headers-naming-conventions why no X-
for the default naming.

API proposal

<?php

$rrest->addResponseHeader('X-Request-Id', 'b228f89c-115b-3bc1-a4f6-89c1f1cbed81');

RequestId

Very useful for debugging etc...

RequestId: b228f89c-115b-3bc1-a4f6-89c1f1cbed81

API proposal

<?php

$rrest->addRequestIdHeader();

Version

Indicate the complete API version, use for debugging too.

Version: 1.2.1
Version: 2016-03-26

API proposal

<?php

$rrest->addVersionHeader('1.2.1');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions