Soup.Cookie.to_set_cookie_header

### Method

# Soup Cookieto_set_cookie_header

#### Declaration [src]

    char*
    soup_cookie_to_set_cookie_header (
      SoupCookie* cookie
    )

#### Description [src]

Serializes `cookie` in the format used by the Set-Cookie header.

i.e. for sending a cookie from a `SoupServer` to a client.

#### Return value

Type: `char*`

The header.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.