std1.0.0-beta-7 SafeC docs

std :: http::cookie

Struct std::CookieList

#include <std/http/cookie.h> source

struct CookieList {
    struct Vec<struct CookiePair> items;
}

The cookies of one Cookie header, in order.

Fields

§struct Vec<struct CookiePair> itemssource

Methods

§static struct CookieList parse(const &char cookie_header)source · definition

Parses "a=1; b=2" (surrounding double quotes on a value are removed; a part without '=' is skipped).

§static struct CookieList from_request(const &HttpRequest req)source · definition

Every Cookie header of a request (HTTP/2 proxies may split them).

§unsigned long length() constsource · definition
§const ?&char get(const &char name) constsource · definition

The first cookie with this name (case-sensitive), or null; aliases this list's storage.

§const ?&char name_at(unsigned long i) constsource · definition
§const ?&char value_at(unsigned long i) constsource · definition
§void drop()source · definition
§void free() consumesource · definition

= drop()