File: hydra-http.h

package info (click to toggle)
hydra 9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,008 kB
  • sloc: ansic: 21,638; sh: 2,166; makefile: 110
file content (21 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _HYDRA_HTTP_H
#define _HYDRA_HTTP_H

#include "hydra-mod.h"

/*	HTTP Header Types	*/
#define HEADER_TYPE_USERHEADER                  'h'
#define HEADER_TYPE_USERHEADER_REPL             'H'
#define HEADER_TYPE_DEFAULT                     'D'
#define HEADER_TYPE_DEFAULT_REPL                'd'

typedef struct header_node t_header_node, *ptr_header_node;

extern char *webtarget;
extern char *slash;
extern char *optional1;

extern int32_t parse_options(char *miscptr, ptr_header_node * ptr_head);
extern int32_t add_header(ptr_header_node * ptr_head, char *header, char *value, char type);
extern char *stringify_headers(ptr_header_node *ptr_head);
#endif