Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

swh:1:snp:158a3f36b0bd3da461fb7458de44cfa2c94e4270
  • Code
  • Branches (0)
  • Releases (20)
    • Branches
    • Releases
      • 1.18.0-6ubuntu14.1
      • 1.18.0-6ubuntu14
      • 1.18.0-6ubuntu11.1
      • 1.18.0-6ubuntu11
      • 1.18.0-6ubuntu8.2
      • 1.18.0-6ubuntu8
      • 1.18.0-0ubuntu1.3
      • 1.17.10-0ubuntu1
      • 1.14.0-0ubuntu1.10
      • 1.10.3-0ubuntu0.16.04.5
      • 1.9.15-0ubuntu1
      • 1.4.6-1ubuntu3.9
      • 1.4.6-1ubuntu3
    • 756ae7d
    • /
    • src
    • /
    • http
    • /
    • ngx_http_variables.h
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    content badge
    swh:1:cnt:f3f7f3c1ceed7a9a92f1c9154dc1a3b52abbf972
    directory badge
    swh:1:dir:a8b0fbff6b961bb56f3a2c42716ce6eb71e0012a
    snapshot badge
    swh:1:snp:158a3f36b0bd3da461fb7458de44cfa2c94e4270
    release badge
    swh:1:rel:401e905664c6d59053bd57e026ddb1b21524a156

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    ngx_http_variables.h
    
    /*
     * Copyright (C) Igor Sysoev
     * Copyright (C) Nginx, Inc.
     */
    
    
    #ifndef _NGX_HTTP_VARIABLES_H_INCLUDED_
    #define _NGX_HTTP_VARIABLES_H_INCLUDED_
    
    
    #include <ngx_config.h>
    #include <ngx_core.h>
    #include <ngx_http.h>
    
    
    typedef ngx_variable_value_t  ngx_http_variable_value_t;
    
    #define ngx_http_variable(v)     { sizeof(v) - 1, 1, 0, 0, 0, (u_char *) v }
    
    typedef struct ngx_http_variable_s  ngx_http_variable_t;
    
    typedef void (*ngx_http_set_variable_pt) (ngx_http_request_t *r,
        ngx_http_variable_value_t *v, uintptr_t data);
    typedef ngx_int_t (*ngx_http_get_variable_pt) (ngx_http_request_t *r,
        ngx_http_variable_value_t *v, uintptr_t data);
    
    
    #define NGX_HTTP_VAR_CHANGEABLE   1
    #define NGX_HTTP_VAR_NOCACHEABLE  2
    #define NGX_HTTP_VAR_INDEXED      4
    #define NGX_HTTP_VAR_NOHASH       8
    #define NGX_HTTP_VAR_WEAK         16
    #define NGX_HTTP_VAR_PREFIX       32
    
    
    struct ngx_http_variable_s {
        ngx_str_t                     name;   /* must be first to build the hash */
        ngx_http_set_variable_pt      set_handler;
        ngx_http_get_variable_pt      get_handler;
        uintptr_t                     data;
        ngx_uint_t                    flags;
        ngx_uint_t                    index;
    };
    
    #define ngx_http_null_variable  { ngx_null_string, NULL, NULL, 0, 0, 0 }
    
    
    ngx_http_variable_t *ngx_http_add_variable(ngx_conf_t *cf, ngx_str_t *name,
        ngx_uint_t flags);
    ngx_int_t ngx_http_get_variable_index(ngx_conf_t *cf, ngx_str_t *name);
    ngx_http_variable_value_t *ngx_http_get_indexed_variable(ngx_http_request_t *r,
        ngx_uint_t index);
    ngx_http_variable_value_t *ngx_http_get_flushed_variable(ngx_http_request_t *r,
        ngx_uint_t index);
    
    ngx_http_variable_value_t *ngx_http_get_variable(ngx_http_request_t *r,
        ngx_str_t *name, ngx_uint_t key);
    
    ngx_int_t ngx_http_variable_unknown_header(ngx_http_variable_value_t *v,
        ngx_str_t *var, ngx_list_part_t *part, size_t prefix);
    
    
    #if (NGX_PCRE)
    
    typedef struct {
        ngx_uint_t                    capture;
        ngx_int_t                     index;
    } ngx_http_regex_variable_t;
    
    
    typedef struct {
        ngx_regex_t                  *regex;
        ngx_uint_t                    ncaptures;
        ngx_http_regex_variable_t    *variables;
        ngx_uint_t                    nvariables;
        ngx_str_t                     name;
    } ngx_http_regex_t;
    
    
    typedef struct {
        ngx_http_regex_t             *regex;
        void                         *value;
    } ngx_http_map_regex_t;
    
    
    ngx_http_regex_t *ngx_http_regex_compile(ngx_conf_t *cf,
        ngx_regex_compile_t *rc);
    ngx_int_t ngx_http_regex_exec(ngx_http_request_t *r, ngx_http_regex_t *re,
        ngx_str_t *s);
    
    #endif
    
    
    typedef struct {
        ngx_hash_combined_t           hash;
    #if (NGX_PCRE)
        ngx_http_map_regex_t         *regex;
        ngx_uint_t                    nregex;
    #endif
    } ngx_http_map_t;
    
    
    void *ngx_http_map_find(ngx_http_request_t *r, ngx_http_map_t *map,
        ngx_str_t *match);
    
    
    ngx_int_t ngx_http_variables_add_core_vars(ngx_conf_t *cf);
    ngx_int_t ngx_http_variables_init_vars(ngx_conf_t *cf);
    
    
    extern ngx_http_variable_value_t  ngx_http_variable_null_value;
    extern ngx_http_variable_value_t  ngx_http_variable_true_value;
    
    
    #endif /* _NGX_HTTP_VARIABLES_H_INCLUDED_ */
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API