Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

Conch::Plugin::ClientVerification

SOURCE

https://github.com/joyent/conch-api/blob/master/lib/Conch/Plugin/ClientVerification.pm

METHODS

register

Sets up the hooks.

HOOKS

before_dispatch

Checks the version of the client sending us a request, possibly rejecting it if it does not meet our criteria.

For security reasons we do not specify the reason for the rejection in the error response, but we will log it.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.