Object built-in object

built-in objects

  • BlsKey- Elliptic curve encryption algorithm object
  • Buffer- Binary data cache object, used for data processing of io reading and writing
  • BufferedStream- Cache read objects
  • Chain- Message processor chain processing object
  • ChildProcess- child process object
  • Cipher- Symmetric encryption algorithm object
  • Condition-Condition variable object
  • DbConnection- DBConnection is the base class of database connection, used to establish and maintain a database connection session. It implements the basic operations of connection and serves as the basis for derived classes. It also supports operations such as starting a transaction, committing a transaction, and rolling back a transaction.
  • DgramSocket- The dgram.Socket object is an EventEmitter that encapsulates the function of the data packet.
  • Digest- Information summary object
  • ECKey- The ECKey class is implemented in the crypto module and can be used to generate ECDSA key pairs, signatures and verification messages, etc.
  • Ed25519Key- Elliptic curve encryption algorithm object
  • Event- The Event module provides an event object for collaborative shared data operations. It allows synchronized operations between multiple fibers (coroutines) to achieve cooperative multitasking. The event object has three methods: wait, pulse and clear. The wait method will block the current fiber until the event is triggered, the pulse method will wake up all fibers waiting for the event, and the clear method will reset the event flag to false. By using the coroutine.Event module, developers can control the execution sequence and data sharing between fibers to implement complex business logic.
  • EventEmitter- EventEmitter is an event-triggered object. It can be used to establish the observer mode. Objects that support event triggering all inherit from this.
  • FSWatcher- File system watch objects
  • Fiber- Fiber operation object, this object cannot be created directly
  • File- File operation object, used for binary file reading and writing
  • FileHandle- file handle object
  • Handler- Message processor interface
  • HeapGraphEdge- HeapGraphEdge represents the association between two HeapGraphNode nodes, from the upstream node to the downstream node
  • HeapGraphNode- HeapGraphNode represents a node in the heap view
  • HeapSnapshot- HeapSnapshots record the state of the JS heap at a certain moment
  • HttpClient- HttpClient is a class library designed for HTTP client functions, providing basic HTTP/HTTPS requests, proxy access, cookie management and other functions
  • HttpCollection- HttpCollection is a general container used to process headers, query, form, cookie data in http messages
  • HttpCookie- HttpCookie is a cookie object encapsulated by the HTTP protocol. It provides various attributes for obtaining and setting cookies. It also supports the organization and processing of multiple cookies. It is an important attribute supported by both http.Request and http.Response objects.
  • HttpHandler- http protocol conversion processor
  • HttpMessage- http basic message object
  • HttpRepeater- HttpRepeater is an HTTP request forwarder that can forward HTTP requests to the specified backend server and obtain a response. It is often used in complex systems that need to interact with multiple servers on the front end, or for load balancing
  • HttpRequest- HttpRequest is a class used to handle HTTP requests. It allows you to create HTTP requests and interact with the server. You can use it to send GET, POST and other types of HTTP requests to the web server
  • HttpResponse- HttpResponse is an HTTP response object. Use the HttpRequest.response object to complete the Http server data response, or http.request request to return the server's response data.
  • HttpServer- HttpServer is one of the built-in objects which is used to create HTTP server. An HttpServer object contains two required parameters: port and event processing interface object. In the event processing interface object, the specific implementation method can be a simple callback function, or complex routing, chain processing arrays, etc.
  • HttpUploadData- One entry data containing multipart
  • HttpsServer- HttpsServer is an object used to create an https server. The HttpsServer object can use all interface functions and properties of HttpServer. The HttpsServer object can provide SSL encryption-protected services to the client by passing in the certificate object (X509Cert type) and key object (PKey type) previously generated using openssl when creating it.
  • Image- Image processing objects, used to convert, draw, store and other operations on images
  • Iterator- Iterator object, used to traverse collection data
  • LevelDB- evelDB is a built-in database operation object of fibjs, used to create and manage dictionary objects in the form of key-value pairs. Using LevelDB objects, you can easily implement key-value pair data storage, query, deletion, enumeration and other operations. It is implemented based on Google's open source LevelDB and has the advantages of efficiency, reliability, and scalability.
  • Lock- Lock is a built-in object that can be used to control concurrent access to fibers. You can acquire a lock through one fiber to prevent other fibers from acquiring it at the same time. Lock can be created through coroutine.Lock() function
  • LruCache- LruCache (Least Recently Used Cache) is a class used to maintain LRU cache. It can store a certain number of values ​​and maintain the size of the container. When new data comes in, if the container has not reached the size limit, the new data can be added directly to the container. If the container is full, the container will evict the least recently used data
  • MemoryStream- Memory stream object
  • Message- Basic message object
  • MySQL- MySQL objects are classes used to operate MySQL databases,
  • Odbc- Odbc database connection object
  • PKey- PKey is an object provided by the built-in crypto module, which represents a pair of keys: public key and private key. PKey supports generating keys, loading keys, storing keys and managing the encryption process in JS
  • RangeStream- Range query stream reading object
  • Redis- Redis database client object
  • RedisHash- Redis database client Hash object. This object is the client containing the specified key. Only by calling its method will the database be operated.
  • RedisList- Redis database client List object. This object is the client containing the specified key. Only by calling its method will the database be operated.
  • RedisSet- Redis database client Set object. This object is a client containing the specified key. Only by calling its method will the database be operated.
  • RedisSortedSet- Redis database client SortedSet object. This object is a client containing the specified key. Only by calling its method will the database be operated.
  • Routing- Message handler routing object
  • SQLite- The SQLite object is a member of the built-in module db. It is mainly responsible for the connection and operation of the SQLite database. It can be used for the creation, query, insertion, update and other operations of the SQLite database. At the same time, the SQLite object also provides some advanced operations such as backup and formatting SQL. SQLite connection objects also support transaction operations
  • SandBox- Isolated sandbox object, used to manage an independent running space
  • Script- Script script compilation and execution object
  • SeekableStream- Stream object interface that can move the current pointer
  • Semaphore- Fiber semaphore object
  • Service- System service management objects
  • Smtp- Smtp object
  • Socket- Network socket object
  • SslHandler- ssl protocol conversion processor
  • SslServer- ssl server object, which can easily create a standard multi-fiber ssl server
  • SslSocket- ssl network socket object
  • Stat-Basic information object of the file
  • StatsWatcher- File Stats observation object
  • Stream- Stream operation object, used for binary data stream reading and writing
  • StringDecoder- Stream decoding object
  • TTYInputStream- tty read stream object, used to read and write to tty
  • TTYOutputStream- tty write stream object, used to process tty output
  • TcpServer- TcpServer` is a highly concurrent TCP Socket server that can be used to create a TCP server that has established a TCP connection with the client in the initial state.
  • TextDecoder- TextDecoder decoding object
  • TextEncoder- TextEncoder encoding object
  • Timer- timer handler object
  • UrlObject- UrlObject is an object used to represent URL information. We can easily use UrlObject objects to represent and operate a URL address.
  • WebSocket- WebSocket is a full-duplex communication protocol based on the TCP protocol. It establishes an uninterrupted connection between the browser and the server, can realize real-time two-way data transmission, and can support data transmission in any format. In fibjs, the WebSocket support module provides the corresponding API interface, which can realize the development of WebSocket server and client.
  • WebSocketMessage- WebSocketMessageis a message type in the WebSocket protocol. It encapsulates the data format and processing method of various messages in the WebSocket transmission protocol and can be used for communication between the WebSocket client and the server.
  • WebView- Browser window object
  • Worker- Worker object is an object used to create child threads, which can be created and processed in the program. A Worker object can be understood as a JavaScript process that executes in a thread different from the main thread. Worker does not share memory with the main thread and does not block the main thread. It is a mainstream asynchronous programming method.
  • X509Cert- X509Cert is an object representing an x509 certificate in the crypto module. This object mainly includes certificate information and methods constructed from a DER or PEM format certificate data and certificate chain data. It can perform operations such as certificate parsing and verification.
  • X509Crl- The X509Crl object is an object in the crypto module. It is used to represent the X509 revocation certificate, that is, the revocation list of the certificate. CA-related operations such as the verification of the X509 certificate chain will use the revocation list information.
  • X509Req- The X509Req object is an object used to create x509 certificate requests and belongs to the crypto module
  • XmlAttr- The XmlAttr object represents the attribute of the XmlElement object
  • XmlCDATASection- The XmlCDATASection object represents the CDATA section in the document
  • XmlCharacterData- The XmlCharacterData interface provides common functions of XmlText and XmlComment nodes
  • XmlComment- The XmlComment object represents the content of the comment node in the document
  • XmlDocument- XmlDocument is an object of the xml module, which represents the entire XML document and provides access to the entire document.
  • XmlDocumentType- The XmlDocumentType object is used to access entities defined by XML
  • XmlElement- The XmlElement object represents an element in an XML document
  • XmlNamedNodeMap- The XmlNamedNodeMap object represents an unordered list of properties
  • XmlNode- The XmlNode object is the basic data type of the entire DOM
  • XmlNodeList- The XmlNodeList object represents an ordered list of nodes
  • XmlProcessingInstruction- The XmlProcessingInstruction object represents the xml processing instruction
  • XmlText- An XmlText object represents the text content of an element or attribute
  • ZipFile- The ZipFile object is an important object in the zip format file compression and decompression module, providing read and write access to zip files.
  • object- The base object from which all objects inherit