MCPcopy Create free account
hub / github.com/Tatamo/atcoder-cli / CookieInterface

Interface CookieInterface

src/cookie.ts:5–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3type CookieConf = import("conf")<Array<string>>;
4
5export interface CookieInterface {
6 /**
7 * 現在保持しているcookieを取得
8 */
9 get(): Array<string>;
10 /**
11 * 現在保持しているcookieを新しいものに置き換える
12 * @param cookies 新しく保持するcookie全体を表す、"key=value"形式の文字列の配列
13 */
14 set(cookies: Array<string>): void;
15 /**
16 * 現在保持しているcookieを捨てる
17 */
18 empty(): void;
19 /**
20 * 同じ内容を持った新しいCookieオブジェクトを返す
21 */
22 clone(): CookieInterface
23 /**
24 * 設定ファイルからcookieを読み込んで保持する
25 */
26 loadConfigFile(): Promise<void>;
27 /**
28 * 現在保持しているcookieを設定ファイルに書き出す
29 */
30 saveConfigFile(): Promise<void>;
31}
32
33export interface CookieConstructorInterface {
34 /**

Callers 23

getGlobalConfigFunction · 0.65
setGlobalConfigFunction · 0.65
getTemplateFromOptionFunction · 0.65
addFunction · 0.65
checkMethod · 0.65
getCSRFTokenMethod · 0.65
contestMethod · 0.65
tasksMethod · 0.65
setGlobalConfigFunction · 0.65
saveConfigFileMethod · 0.65
checkAvailableMethod · 0.65

Implementers 1

Cookiesrc/cookie.ts

Calls

no outgoing calls

Tested by

no test coverage detected