Cargando…

Node cookbook.

A hands on approach to learning Node to equip and guide you in the art of asynchronous server side JavaScript.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Clements, David Mark
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Pub., 2012.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Node Cookbook; Node Cookbook; Credits; About the Author; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Making a Web Server; Introduction; Setting up a router; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Simple multilevel routing; Parsing the querystring; Routing modules; See also.
  • Serving static filesGetting ready; How to do it ... ; How it works ... ; There's more ... ; The favicon gotcha; See also; Caching content in memory for immediate delivery; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Reflecting content changes; See also; Optimizing performance with streaming; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Protecting against process memory overruns; See also; Securing against filesystem hacking exploits; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Whitelisting; Node-static; See also.
  • 2. Exploring the HTTP ObjectIntroduction; Processing POST data; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Accessing POST data with connect.bodyParser; See also; Handling file uploads; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Using formidable to accept all POST data; Preserving filenames with formidable; Uploading via PUT; See also; Using Node as an HTTP client; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Sending POST requests; Multipart file upload as a client; See also; Implementing download throttling; Getting ready.
  • How to do it ... How it works ... ; Enabling resumes from broken downloads; See also; 3. Working with Data Serialization; Introduction; Converting an object to JSON and back again; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Constructing JSONP responses; Security and JSONP; See also; Converting an object to XML and back again; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Objects containing arrays and functions; Generating XML attributes; Text values alongside attribute declarations; See also; Browser-server transmission via AJAX; Getting ready.
  • How to do it ... How it works ... ; There's more ... ; Sending serialized data from client to server; See also; Working with real data: fetching trending tweets; Getting ready; How to do it ... ; How it works ... ; Twitter API and the User-Agent header; There's more ... ; Cross referencing Google Hot Trends with Twitter tweets; See also; 4. Interfacing with Databases; Introduction; Writing to a CSV file; Getting ready; How to do it ... ; How it works ... ; There's more ... ; Customizing the CSV elements; Reading a CSV file; Manipulating CSV as a stream; See also; Connecting and sending SQL to a MySQL server.