Home
last modified time | relevance | path

Searched refs:treq (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/dports/net-p2p/btpd/btpd-0.16/btpd/
H A Dhttp_tr_if.c31 free(treq); in httptr_free()
147 parse_reply(treq->tp, &tres, treq->buf.buf, treq->buf.off); in http_cb()
164 if (http_read(treq->req, sd) && !http_want_read(treq->req)) in httptr_io_cb()
196 btpd_ev_new(&treq->ioev, sd, flags, httptr_io_cb, treq); in httptr_nc_cb()
225 struct httptr_req *treq = btpd_calloc(1, sizeof(*treq)); in httptr_req() local
231 treq->tp = tp; in httptr_req()
232 treq->tr = tr; in httptr_req()
237 treq->tr = tr; in httptr_req()
238 treq->sd = -1; in httptr_req()
242 evtimer_init(&treq->timer, httptr_io_cb, treq); in httptr_req()
[all …]
/dports/sysutils/kubectl/kubernetes-1.22.2/test/integration/auth/
H A Dsvcaccttoken_test.go204 doTokenReview(t, cs, treq, true)
266 doTokenReview(t, cs, treq, true)
320 doTokenReview(t, cs, treq, true)
380 treq.Status.Token = tok
381 doTokenReview(t, cs, treq, true)
453 doTokenReview(t, cs, treq, true)
505 doTokenReview(t, cs, treq, true)
510 doTokenReview(t, cs, treq, true)
546 doTokenReview(t, cs, treq, true)
551 doTokenReview(t, cs, treq, true)
[all …]
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/common/
H A Dtxring.c166 treq->tp_block_size = bs; in txring_mkreq()
167 treq->tp_frame_size = bs / mult; in txring_mkreq()
168 treq->tp_block_nr = nr_blocks; in txring_mkreq()
169 treq->tp_frame_nr = mult * nr_blocks; in txring_mkreq()
174 treq->tp_block_size = pg; in txring_mkreq()
175 treq->tp_frame_size = pg / mult; in txring_mkreq()
176 treq->tp_block_nr = nr_blocks; in txring_mkreq()
180 treq->tp_block_size, treq->tp_block_nr, treq->tp_frame_size, in txring_mkreq()
181 treq->tp_frame_nr); in txring_mkreq()
201 txring_mkreq(txp->treq, mtu); in txring_init()
[all …]
/dports/www/py-treq/treq-20.9.0/
H A DCHANGELOG.rst5 .. currentmodule:: treq
41 … Support for Python 3.8 and PyPy3: treq is now tested with these interpreters. (`#271 <https://git…
50 Now these characters are properly escaped. (`#282 <https://github.com/twisted/treq/issues/282>`__)
56treq documentation has been revised to emphasize use of `treq.client.HTTPClient` over the module-l…
65 - Python 3.7 support. (`#228 <https://github.com/twisted/treq/issues/228>`__)
71treq.testing.RequestTraversalAgent` now passes its memory reactor to the `twisted.web.server.Site`…
72 - `treq.testing` no longer generates deprecation warnings about ``twisted.test.proto_helpers.Memory…
79 - The *agent* parameter to `treq.request()` has been documented. (`#235 <https://github.com/twisted…
80 …ponse tuple passed to `treq.testing.RequestSequence` is now correctly documented as `str`. (`#237 …
86 - Drop support for Python 3.4. (`#240 <https://github.com/twisted/treq/issues/240>`__)
[all …]
H A DREADME.rst1 treq: High-level Twisted HTTP Client API
8 ``treq`` is an HTTP library inspired by
18 >>> from treq import get
30 For more info `read the docs <https://treq.readthedocs.org>`_.
35 ``treq`` development is hosted on `GitHub <https://github.com/twisted/treq>`_.
48 ``treq`` is made available under the MIT license.
52 .. |build| image:: https://api.travis-ci.org/twisted/treq.svg?branch=master
53 .. _build: https://travis-ci.org/twisted/treq
56 .. _coverage: https://coveralls.io/github/twisted/treq
58 .. |pypi| image:: https://img.shields.io/pypi/v/treq.svg
[all …]
H A DPKG-INFO2 Name: treq
5 Home-page: https://github.com/twisted/treq
11 Description: treq: High-level Twisted HTTP Client API
18 ``treq`` is an HTTP library inspired by
28 >>> from treq import get
45 ``treq`` development is hosted on `GitHub <https://github.com/twisted/treq>`_.
58 ``treq`` is made available under the MIT license.
63 .. _build: https://travis-ci.org/twisted/treq
66 .. _coverage: https://coveralls.io/github/twisted/treq
68 .. |pypi| image:: https://img.shields.io/pypi/v/treq.svg
[all …]
/dports/www/py-treq/treq-20.9.0/docs/
H A Dapi.rst12 .. module:: treq
33 .. module:: treq.client
52 .. module:: treq.response
85 .. module:: treq.testing
115 See :func:`treq.get()`.
119 See :func:`treq.head()`.
123 See :func:`treq.post()`.
127 See :func:`treq.put()`.
131 See :func:`treq.patch()`.
135 See :func:`treq.delete()`.
[all …]
H A Dtesting.rst4 The :mod:`treq.testing` module provides some tools for testing both HTTP clients which use the treq
9 The :class:`~treq.testing.StubTreq` class implements the :mod:`treq` module interface (:func:`treq.…
22 The :class:`~treq.testing.RequestSequence` and :class:`~treq.testing.StringStubbingResource` classe…
46 If you care about headers, use :class:`~treq.testing.HasHeaders` to make assertions about the heade…
47 …a superset of the headers specified, which helps make your test robust to changes in treq or Agent.
48 Right now treq adds the ``Accept-Encoding: gzip`` header, but as support for additional compression…
53 Since :class:`~treq.testing.StubTreq` wraps any resource, you can use it to test your server-side c…
57 …ET` you must keep a reference to the :class:`~treq.testing.RequestTraversalAgent` and call its :me…
H A Dindex.rst1 treq: High-level Twisted HTTP Client API
6 `treq <https://pypi.org/project/treq>`_ depends on a recent Twisted and functions on Python 2.7 and…
13 treq is not of course a perfect clone of `requests`_.
14 …e API familiar to users of `Twisted`_ and :class:`twisted.web.client.Agent` on which treq is based.
26 $ pip install treq
48 Initially when I started off working on treq I thought the API should look exactly like `requests`_…
50 …became clear that not enough code could be shared between `requests`_ and treq for it to be worth …
52 With the current version of treq I have tried to keep the API simple, yet remain familiar to users …
59 Here is a list of `requests`_ features and their status in treq.
62 | | requests | treq |
H A Dhowto.rst8 with :meth:`IResponse.deliverBody`, treq provides a helper function
9 :py:func:`treq.collect` which takes a
12 :py:func:`treq.collect` knows nothing about the framing of your data and will
16 :py:func:`treq.collect` to save the response body to a file.
94 treq handles redirects by default.
113 You can even access the complete history of treq response objects by calling
114 the :meth:`~treq.response._Response.history()` method on the response.
143 an instance of :py:class:`treq.client.HTTPClient`. You can create an instance
144 of :py:class:`~treq.client.HTTPClient` directly in order to customize the
146 Internally, the :py:class:`~treq.client.HTTPClient` wraps an instance of
[all …]
/dports/sysutils/kubectl/kubernetes-1.22.2/staging/src/k8s.io/apiserver/pkg/authentication/authenticator/
H A Daudagnostic_test.go31 type treq struct {
48 treqs []treq
72 treqs: []treq{
121 treqs: []treq{
176 treqs: []treq{
204 for _, treq := range c.treqs {
209 if treq.resp != nil {
210 resp := *treq.resp
211 return &resp, treq.authenticated, treq.err
213 return nil, treq.authenticated, treq.err
[all …]
/dports/sysutils/helm/helm-3.5.2/vendor/k8s.io/apiserver/pkg/authentication/authenticator/
H A Daudagnostic_test.go31 type treq struct {
48 treqs []treq
72 treqs: []treq{
121 treqs: []treq{
176 treqs: []treq{
204 for _, treq := range c.treqs {
209 if treq.resp != nil {
210 resp := *treq.resp
211 return &resp, treq.authenticated, treq.err
213 return nil, treq.authenticated, treq.err
[all …]
/dports/www/mitmproxy/mitmproxy-7.0.4/test/mitmproxy/net/http/http1/
H A Dtest_read.py9 from mitmproxy.test.tutils import treq, tresp
70 treq(method=b"HEAD"),
74 treq(method=b"CONNECT", headers=Headers()),
78 treq(method=b"CONNECT"),
83 treq(),
89 treq(headers=Headers(transfer_encoding="chunked")),
117 treq(),
125 treq(headers=Headers(content_length=val))
128 treq(headers=Headers(content_length="42"))
144 treq(headers=Headers())
[all …]
H A Dtest_assemble.py9 from mitmproxy.test.tutils import treq, tresp
13 assert assemble_request(treq()) == (
22 assemble_request(treq(content=None))
26 c = assemble_request_head(treq(content=b"foo"))
87 assert _assemble_request_line(treq().data) == b"GET /path HTTP/1.1"
89 authority_request = treq(method=b"CONNECT", authority=b"address:22").data
92 absolute_request = treq(scheme=b"http", authority=b"address:22").data
98 r = treq(content=b"")
/dports/www/py-treq/treq-20.9.0/src/treq.egg-info/
H A DPKG-INFO2 Name: treq
5 Home-page: https://github.com/twisted/treq
11 Description: treq: High-level Twisted HTTP Client API
18 ``treq`` is an HTTP library inspired by
28 >>> from treq import get
45 ``treq`` development is hosted on `GitHub <https://github.com/twisted/treq>`_.
58 ``treq`` is made available under the MIT license.
63 .. _build: https://travis-ci.org/twisted/treq
66 .. _coverage: https://coveralls.io/github/twisted/treq
68 .. |pypi| image:: https://img.shields.io/pypi/v/treq.svg
[all …]
/dports/www/mitmproxy/mitmproxy-7.0.4/test/mitmproxy/
H A Dtest_http.py32 r = treq()
53 r = treq()
96 request = treq()
164 request = treq()
191 request = treq()
203 no_hdr = treq()
206 h1 = treq(
221 h1 = treq()
253 request = treq()
274 request = treq()
[all …]
/dports/www/py-treq/treq-20.9.0/docs/examples/
H A Dtesting_seq.py5 from treq.testing import StubTreq, HasHeaders
6 from treq.testing import RequestSequence, StringStubbingResource
10 def make_a_request(treq): argument
14 response = yield treq.get('http://an.example/foo', params={'a': 'b'},
36 treq = StubTreq(StringStubbingResource(req_seq))
39 result = self.successResultOf(make_a_request(treq))
50 treq = StubTreq(StringStubbingResource(req_seq))
53 failure = self.failureResultOf(make_a_request(treq))
H A Dquery_params.py4 import treq
10 resp = yield treq.get('https://httpbin.org/get',
16 resp = yield treq.get('https://httpbin.org/get',
22 resp = yield treq.get('https://httpbin.org/get',
28 resp = yield treq.get('https://httpbin.org/get',
34 resp = yield treq.get('https://httpbin.org/get?foo=bar',
/dports/devel/libsoup/libsoup-2.74.0/tests/
H A Dredirect-test.c127 TestRequest **treq = user_data; in got_headers() local
137 if (!(*treq)->method) in got_headers()
146 TestRequest **treq = user_data; in restarted() local
151 if ((*treq)->method && !(*treq)->repeat) in restarted()
152 (*treq)++; in restarted()
154 soup_test_assert ((*treq)->method, in restarted()
166 TestRequest *treq; in do_message_api_test() local
182 treq = &test->requests[0]; in do_message_api_test()
186 G_CALLBACK (restarted), &treq); in do_message_api_test()
201 TestRequest *treq; in do_request_api_test() local
[all …]
/dports/devel/libsoup3/libsoup-3.0.3/tests/
H A Dredirect-test.c130 TestRequest **treq = user_data; in got_headers() local
140 if (!(*treq)->method) in got_headers()
149 TestRequest **treq = user_data; in restarted() local
154 if ((*treq)->method && !(*treq)->repeat) in restarted()
155 (*treq)++; in restarted()
157 soup_test_assert ((*treq)->method, in restarted()
161 g_assert_cmpstr (g_uri_get_path (uri), ==, (*treq)->path); in restarted()
170 TestRequest *treq; in do_message_api_test() local
188 treq = &test->requests[0]; in do_message_api_test()
190 G_CALLBACK (got_headers), &treq); in do_message_api_test()
[all …]
/dports/www/py-treq/treq-20.9.0/src/treq/test/
H A Dtest_treq_integration.py19 import treq
32 text = yield treq.text_content(response)
49 get = with_baseurl(treq.get)
50 head = with_baseurl(treq.head)
51 post = with_baseurl(treq.post)
52 put = with_baseurl(treq.put)
53 patch = with_baseurl(treq.patch)
54 delete = with_baseurl(treq.delete)
83 body = yield treq.json_content(response)
89 body = yield treq.json_content(response)
[all …]
H A Dtest_api.py7 import treq
8 from treq._utils import set_global_pool
30 resp = treq.get('http://test.com')
42 treq.get('http://test.com')
46 treq.get('http://test.com')
55 treq.get('https://www.example.org/', agent=custom_agent)
/dports/emulators/yaze-ag/yaze-ag-2.51.0/
H A Dytimer.c27 struct timespec treq; in sim_os_ms_sleep() local
29 treq.tv_sec = milliseconds / MILLIS_PER_SEC; in sim_os_ms_sleep()
30 treq.tv_nsec = (milliseconds % MILLIS_PER_SEC) * NANOS_PER_MILLI; in sim_os_ms_sleep()
31 (void) nanosleep (&treq, NULL); in sim_os_ms_sleep()
/dports/multimedia/libv4l/linux-5.13-rc2/net/ipv4/
H A Dsyncookies.c289 struct tcp_request_sock *treq; in cookie_tcp_reqsk_alloc() local
301 treq = tcp_rsk(req); in cookie_tcp_reqsk_alloc()
304 treq->is_mptcp = sk_is_mptcp(sk); in cookie_tcp_reqsk_alloc()
305 if (treq->is_mptcp) { in cookie_tcp_reqsk_alloc()
328 struct tcp_request_sock *treq; in cookie_v4_check() local
374 treq = tcp_rsk(req); in cookie_v4_check()
376 treq->snt_isn = cookie; in cookie_v4_check()
377 treq->ts_off = 0; in cookie_v4_check()
378 treq->txhash = net_tx_rndhash(); in cookie_v4_check()
390 treq->snt_synack = 0; in cookie_v4_check()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/ipv4/
H A Dsyncookies.c289 struct tcp_request_sock *treq; in cookie_tcp_reqsk_alloc() local
301 treq = tcp_rsk(req); in cookie_tcp_reqsk_alloc()
304 treq->is_mptcp = sk_is_mptcp(sk); in cookie_tcp_reqsk_alloc()
305 if (treq->is_mptcp) { in cookie_tcp_reqsk_alloc()
328 struct tcp_request_sock *treq; in cookie_v4_check() local
374 treq = tcp_rsk(req); in cookie_v4_check()
376 treq->snt_isn = cookie; in cookie_v4_check()
377 treq->ts_off = 0; in cookie_v4_check()
378 treq->txhash = net_tx_rndhash(); in cookie_v4_check()
390 treq->snt_synack = 0; in cookie_v4_check()
[all …]

12345678910>>...16