YoannCHB / Break

BREAK IS AN EASY LIBRARY TO MAKE AUTOMATICALLY REQUEST ON SERVER WITHEOUT ERROR!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Break - v2.1

npm i w3c-xmlhttprequest
npm i breakrequest

npm Download JavaScript Style Guide

#Break

Why you need to use "Break" ?

Break allows you to easily create any type of request to a server. But not only ! It automatically corrects the urls in case of problems and will come to define itself automatically: the url, the type of request and the type of send. Break also allows response backup as well as a responseJSON if possible. Finally, it automatically detects and manages any type of error and sends it back to you in case of problems!

  • We can say that Break fully manages your requests and any type of response from the server.

What is new in v2.1?

  • You can now get and set the headers
  • You can set the responseType
  • Two new system of correction in the URL look at the [API]
  • Request become BreakRequest
  • break.min.js is here !
  • Support port (listen) finish !
  • New Command: element.correctURL, element.listen
  • Bug setting
  • Readme update
  • API update
  • Module added (beta)

Support - XMLHttpRequest:

  • SetRequestHeader
  • getAllResponseHeader
  • Send
  • POST
  • GET
  • PORT

Support - WebSocket:

  • CONNECTION
  • SEND
  • MESSAGES
  • PORT

Support - EventSource:

  • CONNECTION
  • MESSAGES
  • PORT

Support- All:

  • Mesage
  • Open
  • Close
  • Error

Command:

  • element.type
  • element.json
  • element.url
  • element.response
  • element.send
  • element.connected
  • element.error
  • element.correctURL
  • element.listen
  • element.method
  • element.responseType
  • element.writeHead
  • element.headerMap
  • element.request
  • element.loop
  • element.ext

Tools:

About

BREAK IS AN EASY LIBRARY TO MAKE AUTOMATICALLY REQUEST ON SERVER WITHEOUT ERROR!

License:ISC License


Languages

Language:JavaScript 94.4%Language:HTML 5.6%