Searched refs:req (Results 1 - 25 of 539) sorted by relevance

1234567891011>>

/macosx-10.9.5/ruby-104/ruby/test/rdoc/
H A Dtest_rdoc_require.rb8 @req = RDoc::Require.new 'foo', 'comment'
12 assert_equal 'foo', @req.name
14 req = RDoc::Require.new '"foo"', ''
15 assert_equal 'foo', @req.name
17 req = RDoc::Require.new '\'foo\'', ''
18 assert_equal 'foo', @req.name
20 req = RDoc::Require.new '|foo|', ''
21 assert_equal 'foo', @req.name, 'for fortran?'
/macosx-10.9.5/ruby-104/ruby/test/net/http/
H A Dtest_http_request.rb8 req = Net::HTTP::Get.new '/'
10 assert_equal 'GET', req.method
11 refute req.request_body_permitted?
12 assert req.response_body_permitted?
22 assert_equal expected, req.to_hash
26 req = Net::HTTP::Get.new '/', 'Range' => 'bytes=0-9'
28 assert_equal 'GET', req.method
29 refute req.request_body_permitted?
30 assert req.response_body_permitted?
38 assert_equal expected, req
[all...]
/macosx-10.9.5/ruby-104/ruby/test/openssl/
H A Dtest_x509req.rb15 req = OpenSSL::X509::Request.new
16 req.version = ver
17 req.subject = dn
18 req.public_key = key.public_key
19 req.sign(key, digest)
20 req
24 req = issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::SHA1.new)
25 assert_equal(@rsa1024.public_key.to_der, req.public_key.to_der)
26 req = OpenSSL::X509::Request.new(req
[all...]
/macosx-10.9.5/ruby-104/ruby/test/webrick/
H A Dtest_httprequest.rb10 req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP)
11 req.parse(StringIO.new(msg))
12 assert(req.meta_vars) # fails if @header was not initialized and iteration is attempted on the nil reference
20 req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP)
21 req.parse(StringIO.new(msg.gsub(/^ {6}/, "")))
22 assert_equal("GET", req.request_method)
23 assert_equal("/", req.unparsed_uri)
24 assert_equal(WEBrick::HTTPVersion.new("0.9"), req.http_version)
25 assert_equal(WEBrick::Config::HTTP[:ServerName], req.host)
26 assert_equal(80, req
[all...]
H A Dwebrick.cgi5 def do_GET(req, res)
7 if (p = req.path_info) && p.length > 0
9 elsif (q = req.query).size > 0
15 elsif %r{/$} =~ req.request_uri.to_s
17 res.body << req.request_uri.to_s << "\n"
18 res.body << req.script_name
19 elsif !req.cookies.empty?
20 res.body = req.cookies.inject(""){|result, cookie|
26 res.body = req.script_name
30 def do_POST(req, re
[all...]
H A Dwebrick_long_filename.cgi5 def do_GET(req, res)
7 if (p = req.path_info) && p.length > 0
9 elsif (q = req.query).size > 0
15 elsif %r{/$} =~ req.request_uri.to_s
17 res.body << req.request_uri.to_s << "\n"
18 res.body << req.script_name
19 elsif !req.cookies.empty?
20 res.body = req.cookies.inject(""){|result, cookie|
26 res.body = req.script_name
30 def do_POST(req, re
[all...]
/macosx-10.9.5/BerkeleyDB-21/db/rpc_server/c/
H A Dgen_db_server.c13 __db_env_create_4007__SVCSUFFIX__(msg, req)
15 struct svc_req *req;
18 COMPQUIET(req, NULL);
27 __db_env_cdsgroup_begin_4007__SVCSUFFIX__(msg, req)
29 struct svc_req *req;
32 COMPQUIET(req, NULL);
41 __db_env_close_4007__SVCSUFFIX__(msg, req)
43 struct svc_req *req;
46 COMPQUIET(req, NULL);
56 __db_env_dbremove_4007__SVCSUFFIX__(msg, req)
[all...]
/macosx-10.9.5/Heimdal-323.92.1/lib/hx509/
H A Dreq.c49 hx509_request_init(hx509_context context, hx509_request *req) argument
51 *req = calloc(1, sizeof(**req));
52 if (*req == NULL)
59 hx509_request_free(hx509_request *req) argument
61 if ((*req)->name)
62 hx509_name_free(&(*req)->name);
63 free_SubjectPublicKeyInfo(&(*req)->key);
64 free_ExtKeyUsage(&(*req)->eku);
65 free_GeneralNames(&(*req)
72 hx509_request_set_name(hx509_context context, hx509_request req, hx509_name name) argument
87 hx509_request_get_name(hx509_context context, hx509_request req, hx509_name *name) argument
99 hx509_request_set_SubjectPublicKeyInfo(hx509_context context, hx509_request req, const SubjectPublicKeyInfo *key) argument
108 hx509_request_get_SubjectPublicKeyInfo(hx509_context context, hx509_request req, SubjectPublicKeyInfo *key) argument
116 _hx509_request_add_eku(hx509_context context, hx509_request req, const heim_oid *oid) argument
138 _hx509_request_add_dns_name(hx509_context context, hx509_request req, const char *hostname) argument
153 _hx509_request_add_email(hx509_context context, hx509_request req, const char *email) argument
170 _hx509_request_to_pkcs10(hx509_context context, const hx509_request req, const hx509_private_key signer, heim_octet_string *request) argument
241 _hx509_request_parse(hx509_context context, const char *path, hx509_request *req) argument
309 _hx509_request_print(hx509_context context, hx509_request req, FILE *f) argument
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/webrick/httpservlet/
H A Dabstract.rb99 # Dispatches to a +do_+ method based on +req+ if such a method is
103 def service(req, res)
104 method_name = "do_" + req.request_method.gsub(/-/, "_")
106 __send__(method_name, req, res)
109 "unsupported method `#{req.request_method}'."
116 def do_GET(req, res)
123 def do_HEAD(req, res)
124 do_GET(req, res)
130 def do_OPTIONS(req, res)
141 def redirect_to_directory_uri(req, re
[all...]
/macosx-10.9.5/curl-78.94.1/curl/src/
H A Dtool_helpers.c68 int SetHTTPrequest(struct Configurable *config, HttpReq req, HttpReq *store) argument
71 (*store == req)) {
72 *store = req;
H A Dtool_helpers.h28 int SetHTTPrequest(struct Configurable *config, HttpReq req, HttpReq *store);
/macosx-10.9.5/ruby-104/ruby/test/cgi/
H A Dtest_cgi_modruby.rb18 #@req = Apache.request
29 req = Apache.request
31 assert(req._setup_cgi_env_invoked?)
32 assert(! req._send_http_header_invoked?)
35 assert_equal('text/html', req.content_type)
36 assert(req._send_http_header_invoked?)
41 req = Apache.request
52 assert(req._setup_cgi_env_invoked?)
53 assert(! req._send_http_header_invoked?)
56 assert_equal('image/gif', req
[all...]
/macosx-10.9.5/curl-78.94.1/curl/tests/server/
H A Drtspd.c121 static int ProcessRequest(struct httprequest *req);
327 static int ProcessRequest(struct httprequest *req) argument
329 char *line=&req->reqbuf[req->checkindex];
341 req->testno, line);
345 if((req->testno == DOCNUMBER_NOTHING) &&
356 req->protocol = RPROT_HTTP;
359 req->protocol = RPROT_RTSP;
362 req->protocol = RPROT_NONE;
367 req
772 get_request(curl_socket_t sock, struct httprequest *req) argument
883 send_doc(curl_socket_t sock, struct httprequest *req) argument
1193 struct httprequest req; local
[all...]
/macosx-10.9.5/ruby-104/ruby/ext/openssl/
H A Dossl_x509req.c13 #define WrapX509Req(klass, obj, req) do { \
14 if (!(req)) { \
17 (obj) = Data_Wrap_Struct((klass), 0, X509_REQ_free, (req)); \
19 #define GetX509Req(obj, req) do { \
20 Data_Get_Struct((obj), X509_REQ, (req)); \
21 if (!(req)) { \
25 #define SafeGetX509Req(obj, req) do { \
27 GetX509Req((obj), (req)); \
40 ossl_x509req_new(X509_REQ *req) argument
45 if (!req) {
61 X509_REQ *req; local
71 X509_REQ *req, *new; local
87 X509_REQ *req; local
102 X509_REQ *req, *x = DATA_PTR(self); local
126 X509_REQ *a, *b, *req; local
144 X509_REQ *req; local
167 X509_REQ *req; local
187 X509_REQ *req; local
230 X509_REQ *req; local
242 X509_REQ *req; local
259 X509_REQ *req; local
273 X509_REQ *req; local
287 X509_REQ *req; local
310 X509_REQ *req; local
324 X509_REQ *req; local
339 X509_REQ *req; local
359 X509_REQ *req; local
378 X509_REQ *req; local
402 X509_REQ *req; local
427 X509_REQ *req; local
[all...]
/macosx-10.9.5/Security-55471.14.18/include/security_codesigning/
H A DRequirements.cpp39 const Requirement *req = (const Requirement *)data; local
40 if (!req->validateBlob(length))
42 mReq = req->clone();
49 SecRequirement::SecRequirement(const Requirement *req, bool transferOwnership) argument
52 if (!req->validateBlob())
56 mReq = req;
58 mReq = req->clone();
/macosx-10.9.5/Security-55471.14.18/libsecurity_codesigning/lib/
H A DRequirements.cpp39 const Requirement *req = (const Requirement *)data; local
40 if (!req->validateBlob(length))
42 mReq = req->clone();
49 SecRequirement::SecRequirement(const Requirement *req, bool transferOwnership) argument
52 if (!req->validateBlob())
56 mReq = req;
58 mReq = req->clone();
/macosx-10.9.5/ruby-104/ruby/lib/webrick/
H A Dhttpauth.rb46 # def do_GET req, res
47 # @authenticator.authenticate req, res
56 def _basic_auth(req, res, realm, req_field, res_field, err_type,
59 if /^Basic\s+(.*)/o =~ req[req_field]
64 req.user = user
73 # called with a request +req+, response +res+, authentication +realm+ and
78 def basic_auth(req, res, realm, &block) # :yield: username, password
79 _basic_auth(req, res, realm, "Authorization", "WWW-Authenticate",
85 # When called with a request +req+, response +res+, authentication +realm+
90 def proxy_basic_auth(req, re
[all...]
H A Daccesslog.rb79 # %{attr}n:: Given request attribute from <tt>req.attributes</tt>
94 def setup_params(config, req, res)
96 params["a"] = req.peeraddr[3]
100 params["h"] = req.peeraddr[2]
101 params["i"] = req
103 params["m"] = req.request_method
104 params["n"] = req.attributes
106 params["p"] = req.port
107 params["q"] = req.query_string
108 params["r"] = req
[all...]
/macosx-10.9.5/network_cmds-433/ifconfig.tproj/
H A Difbridge.c151 struct ifbreq req; local
153 strlcpy(req.ifbr_ifsname, ifs, sizeof(req.ifbr_ifsname));
155 if (do_cmd(sock, BRDGGIFFLGS, &req, sizeof(req), 0) < 0)
159 req.ifbr_ifsflags |= flag;
161 req.ifbr_ifsflags &= ~flag;
163 if (do_cmd(sock, BRDGSIFFLGS, &req, sizeof(req), 1) < 0)
171 struct ifbreq *req; local
331 struct ifbreq req; local
342 struct ifbreq req; local
396 struct ifbreq req; local
407 struct ifbreq req; local
483 struct ifbreq req; local
494 struct ifbreq req; local
506 struct ifbareq req; local
527 struct ifbareq req; local
662 struct ifbreq req; local
681 struct ifbreq req; local
701 struct ifbreq req; local
[all...]
/macosx-10.9.5/CPANInternal-140/JSON-RPC-1.03/lib/JSON/RPC/
H A DParser.pm19 my ($self, $req) = @_;
21 my $method = $req->method;
24 $proc = $self->construct_from_post_req( $req );
26 $proc = $self->construct_from_get_req( $req );
35 my ($self, $req) = @_;
37 my $request = eval { $self->coder->decode( $req->content ) };
48 foreach my $req ( @$request ) {
49 Carp::croak( "Invalid parameter") unless ref $req eq 'HASH';
51 method => $req->{method},
52 id => $req
[all...]
/macosx-10.9.5/ruby-104/ruby/test/rubygems/
H A Dtest_gem_requirement.rb7 r = req "= 1.2"
14 refute_equal Object.new, req("= 1.2")
15 refute_equal req("= 1.2"), Object.new
68 r = req '= 1'
72 r = req '= 1.a'
76 r = req '> 1.a', '< 2'
82 r = req '!= 1.2'
94 r = req "1.2"
106 r = req "= 1.2"
118 r = req "> 1.
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dkern_newsysctl.c105 int arg2, struct sysctl_req *req);
107 int arg2, struct sysctl_req *req);
111 STATIC int sysctl_old_kernel(struct sysctl_req *req, const void *p, size_t l);
112 STATIC int sysctl_new_kernel(struct sysctl_req *req, void *p, size_t l);
114 STATIC int sysctl_sysctl_name2oid(struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req);
116 struct sysctl_req *req);
117 STATIC int sysctl_sysctl_oidfmt(struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req);
119 STATIC int sysctl_old_user(struct sysctl_req *req, const void *p, size_t l);
120 STATIC int sysctl_new_user(struct sysctl_req *req, void *p, size_t l);
393 * value (req
399 sysctl_io_number(struct sysctl_req *req, long long bigValue, size_t valueSize, void *pValue, int *changed) argument
457 sysctl_io_string(struct sysctl_req *req, char *pValue, size_t valueSize, int trunc, int *changed) argument
501 sysctl_io_opaque(struct sysctl_req *req,void *pValue, size_t valueSize, int *changed) argument
621 sysctl_sysctl_debug(__unused struct sysctl_oid *oidp, __unused void *arg1, __unused int arg2, __unused struct sysctl_req *req) argument
680 sysctl_sysctl_name(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
872 sysctl_sysctl_next(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1007 sysctl_sysctl_name2oid(__unused struct sysctl_oid *oidp, __unused void *arg1, __unused int arg2, struct sysctl_req *req) argument
1089 sysctl_sysctl_oidfmt(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1155 sysctl_handle_int(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1166 sysctl_handle_long(__unused struct sysctl_oid *oidp, void *arg1, __unused int arg2, struct sysctl_req *req) argument
1179 sysctl_handle_quad(__unused struct sysctl_oid *oidp, void *arg1, __unused int arg2, struct sysctl_req *req) argument
1195 sysctl_handle_int2quad(__unused struct sysctl_oid *oidp, void *arg1, __unused int arg2, struct sysctl_req *req) argument
1234 sysctl_handle_string( __unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1246 sysctl_handle_opaque(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1256 sysctl_old_kernel(struct sysctl_req *req, const void *p, size_t l) argument
1274 sysctl_new_kernel(struct sysctl_req *req, void *p, size_t l) argument
1289 struct sysctl_req req; local
1328 sysctl_old_user(struct sysctl_req *req, const void *p, size_t l) argument
1351 sysctl_new_user(struct sysctl_req *req, void *p, size_t l) argument
1370 sysctl_root(__unused struct sysctl_oid *oidp, void *arg1, int arg2, struct sysctl_req *req) argument
1584 struct sysctl_req req, req2; local
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/contrib/ldapc++/src/
H A DLDAPMessage.cpp34 LDAPMsg* LDAPMsg::create(const LDAPRequest *req, LDAPMessage *msg){ argument
38 return new LDAPSearchResult(req,msg);
41 return new LDAPSearchReference(req, msg);
44 return new LDAPExtResult(req,msg);
47 return new LDAPSaslBindResult(req,msg);
49 return new LDAPResult(req, msg);
/macosx-10.9.5/ruby-104/ruby/sample/webrick/
H A Dhello.rb4 def do_GET(req, res)
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/back-sock/
H A Dsearchexample.pl51 my %req = ();
56 $req{$1} = $2;

Completed in 214 milliseconds

1234567891011>>