Plugin Directory

Changeset 1386772


Ignore:
Timestamp:
04/05/2016 01:21:19 AM (10 years ago)
Author:
derekheld
Message:

Moving include for httpful, setting a template

Location:
blue-storage/branches/2.0.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • blue-storage/branches/2.0.0/blue-storage.php

    r1385807 r1386772  
    1313require_once( 'class-azure-storage-client.php' );
    1414require_once( 'class-blue-storage-const.php' );
     15require_once ( 'libraries/httpful.phar' ); // Include here because we make a template to be used across the whole plugin
    1516
    1617\BlueStorage\BlueStorageSettings::init();
     18
     19// Sets standard request template for Azure requests
     20$template = \Httpful\Request::init()
     21                ->strictSSL(true)
     22                ->expects('application/xml')
     23                ->addHeaders( array('x-ms-version' => \BlueStorage\BlueStorageConst::X_MS_VERSION) );
  • blue-storage/branches/2.0.0/class-azure-storage-client.php

    r1385637 r1386772  
    1111namespace BlueStorage;
    1212
    13 require_once ( 'libraries/httpful.phar' );
    14 
    1513class AzureStorageClient
    1614{
  • blue-storage/branches/2.0.0/class-blue-storage-const.php

    r1385707 r1386772  
    1717    const ALLOW_COPY_TO_AZURE = true;
    1818    const ALLOW_DEFAULT_UPLOAD_CHANGE = true;
     19
     20    const X_MS_VERSION = '2015-04-05';
    1921}
Note: See TracChangeset for help on using the changeset viewer.