src/http/ngx_http_priority.h - nginx-1.31.9 nginx/ @ 2a3a19c6f

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Nginx, Inc.
  3. */


  4. #ifndef _NGX_HTTP_PRIORITY_H_INCLUDED_
  5. ‌#define _NGX_HTTP_PRIORITY_H_INCLUDED_


  6. #include <ngx_config.h>
  7. #include <ngx_core.h>


  8. ‌typedef struct {
  9.     unsigned              urgency:3;     /* 0-7, default 3, lower is higher */
  10.     unsigned              incremental:1;
  11.     unsigned              urgency_set:1;
  12.     unsigned              incremental_set:1;
  13. ‌} ngx_http_priority_t;


  14. ‌typedef struct {
  15.     ngx_http_priority_t   client;
  16.     ngx_http_priority_t   server;
  17.     ngx_http_priority_t   effective;
  18. ‌} ngx_http_priority_state_t;


  19. void ngx_http_priority_state_init(ngx_http_priority_state_t *ps);
  20. ngx_int_t ngx_http_priority_parse(ngx_str_t *field, ngx_http_priority_t *p);
  21. void ngx_http_priority_state_update(ngx_http_priority_state_t *ps);


  22. #endif /* _NGX_HTTP_PRIORITY_H_INCLUDED_ */