webmiddle

webmiddle

  • Getting Started
  • GitHub

›Fetching

Introduction

  • Getting Started
  • Main concepts
  • Starter App

webmiddle

  • Evaluate
  • Resources
  • ErrorBoundary
  • WithOptions

Control Flow

  • Pipe
  • Parallel

Fetching

  • HttpRequest
  • Browser
  • Cookie Manager

Transforming

  • CheerioToJson
  • JSONSelectToJson

Storing

  • Resume

Remote execution

  • Server
  • Client

Cookie Manager

Wrapper on top of the tough-cookie library, acts as a cookie jar.

Install

yarn webmiddle-manager-cookie

Properties

NameDescription
jarThe cookie jar from the tough-cookie library. Cookies are read in “loose mode” so that the system won’t fail in case of cookies that don’t strictly adhere to the cookie specification.

Static properties

NameDescription
CookieA class representing a cookie, it is taken directly from the tough-cookie library. Useful for creating and parsing cookies.

How it works

Differently from most of the other core packages, this isn't a webmiddle component.

It is a wrapper on top of the tough-cookie library and it acts as a cookie jar.

It is shared among all the contexts extending rootContext and by rootContext itself, and can be used by components such as HttpRequest and Browser to store and retrieve cookies.

This package makes sure that cookies can be preserved and shared when evaluating different components.

← PreviousNext →
  • Install
  • Properties
  • Static properties
  • How it works
webmiddle
Docs
Getting StartedMain ConceptsStarter App
Community
Stack OverflowTwitter
More
GitHubStar
Copyright © 2018 Manuel Dell'Elce