2017 © Pedro Peláez
 

library api-detector

A library for test response time for web api

image

renshan/api-detector

A library for test response time for web api

  • Tuesday, March 14, 2017
  • by renshan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 25 % Grown

The README.md

API DERECTOR

A library for curl request and response, (*1)

CLASSES AND METHODS

Headers

  1. get Get a header key
  2. set Set a header key with a value, defaults to replace
  3. remove Remove a header key
  4. replace Replace a header key, if the key dosen't exists, it will be seted
  5. getAll Get all header items as array

Request

  1. __constructor
    The constructor of Request
  2. setUrl
    Set request request url
  3. getUrl
    Get request request url
  4. setMethod
    Set request method
  5. getMethod
    Get request method
  6. setParameters
    Set request parameters
  7. getParameters
    Get request parameters
  8. addParameter
    Add a request arameter
  9. removeParameter
    Remove a request parameter
  10. getTimes
    Get request times
  11. getRequestedTimes
    Get requested times
  12. setBeforeSend
    Set a function to call before a request
  13. getBeforeSend
    Get the before send function
  14. setAfterSend
    Set a function to call aftere a request
  15. getAfterSend
    Get the after send function
  16. setAfterComplete
    Set a function to call after all request complete
  17. getAfterComplete
    Get the after complete function
  18. send
    The function to send a request

CONSTS

  1. REQUEST_METHOD_GET
  2. REQUEST_METHOD_POST
  3. REQUEST_METHOD_HEAD
  4. REQUEST_METHOD_PATCH
  5. REQUEST_METHOD_DELETE
  6. REQUEST_METHOD_REMOVE
  7. REQUEST_METHOD_LOCK
  8. REQUEST_METHOD_UNLOCK
  9. REQUEST_METHOD_OPTIONS
  10. REQUEST_METHOD_TRACE
  11. REQUEST_METHOD_PUT
  12. REQUEST_METHOD_PROPFIND
  13. REQUEST_METHOD_PROPPATCH
  14. REQUEST_METHOD_MKCOL

Response

  1. __construct
    The constructor of Response
  2. getHedeaders
    Get response headers
  3. getBody
    Get response body
  4. getStatusCode
    Get response status code
  5. getInfo
    Get full curl request info
  6. getErrNo
    Get curl request error number
  7. getErrMsg
    Get curl request error message
  8. getRequestTime
    Get the time between once request and response

EXAMPLE

  1. example

The Versions

14/03 2017

dev-master

9999999-dev

A library for test response time for web api

  Sources   Download

MIT

by Avatar renshan

14/03 2017

1.0.3

1.0.3.0

A library for test response time for web api

  Sources   Download

MIT

by Avatar renshan

08/03 2017

1.0.2

1.0.2.0

A library for test response time for web api

  Sources   Download

MIT

by Avatar renshan

08/03 2017

1.0.1

1.0.1.0

A library for test response time for web api

  Sources   Download

MIT

by Avatar renshan

08/03 2017

1.0.0

1.0.0.0

A library for test response time for web api

  Sources   Download

MIT

by Avatar renshan