PHP Class Larabros\Elogram\Http\Middleware\SecureRequestMiddleware

Inheritance: extends AbstractMiddleware, use trait CreateMiddlewareTrait, use trait Larabros\Elogram\Http\UrlParserTrait
Afficher le fichier Open project: larabros/elogram

Méthodes publiques

Méthode Description
__invoke ( Psr\Http\Message\RequestInterface $request, array $options ) {@inheritDoc}

Méthodes protégées

Méthode Description
generateSig ( string $endpoint, array $params, string $secret ) : string Generates a sig value for a request.

Method Details

__invoke() public méthode

{@inheritDoc}
public __invoke ( Psr\Http\Message\RequestInterface $request, array $options )
$request Psr\Http\Message\RequestInterface
$options array

generateSig() protected méthode

Generates a sig value for a request.
protected generateSig ( string $endpoint, array $params, string $secret ) : string
$endpoint string
$params array
$secret string
Résultat string