• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

henvic / httpretty / 10944970911
94%

Build:
DEFAULT BRANCH: main
Ran 19 Sep 2024 04:21PM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Sep 2024 02:41PM UTC coverage: 94.444% (+0.07%) from 94.379%
10944970911

push

github

arp242
Add Align to align HTTP headers

IMHO this makes stuff rather more readable/scannable. Some people may
not like it, so I added it as an option.

Will automatically align to the longest header; I modified the
sortHeaderKeys() so we don't need to do an extra loop for it.

Also pass the Host header to printHeaders() so it's aligned too. Do some
special-fu to make sure it still prints as the first.

Before;

	* Request at 2024-09-19 15:19:15.459694244 +0100 IST m=+1.001660288
	* Request to http://localhost:8081/api/3/ping
	> GET /api/3/ping HTTP/1.1
	> Host: localhost:8081
	> Accept: application/json; charset=utf-8
	> Authorization: ApiKey ████████████████████
	> Content-Type: application/json; charset=utf-8
	> User-Agent: alfred/

	< HTTP/1.1 200 OK
	< Cache-Control: no-store,no-cache
	< Content-Length: 88
	< Content-Security-Policy: default-src 'self'; img-src 'self' blob: data:;
	< Content-Type: application/json; charset=utf-8
	< Date: Thu, 19 Sep 2024 14:19:15 GMT
	< Referrer-Policy: same-origin
	< X-Content-Type-Options: nosniff
	< X-Frame-Options: SAMEORIGIN
	< X-Powered-By: Alfred
	< X-Xss-Protection: 1; mode=block

	{
		"ftm_version": "3.7.0",
		"role": 4,
		"title": "Alfred",
		"version": "d67f396b"
	}

	* Request took 9.251101ms

After:

	* Request at 2024-09-19 15:18:45.255328802 +0100 IST m=+1.001249794
	* Request to http://localhost:8081/api/3/ping
	> GET /api/3/ping HTTP/1.1
	> Host:          localhost:8081
	> Accept:        application/json; charset=utf-8
	> Authorization: ApiKey ████████████████████
	> Content-Type:  application/json; charset=utf-8
	> User-Agent:    alfred/

	< HTTP/1.1 200 OK
	< Cache-Control:           no-store,no-cache
	< Content-Length:          88
	< Content-Security-Policy: default-src 'self'; img-src 'self' blob: data:;
	< Content-Type:            application/json; charset=utf-8
	< Date:                    Thu, 19 Sep 2024 14:18:45 GMT
	< Referrer-Policy:         same-origin
	< X-Content-Type-Options:  nosniff
	< X-... (continued)

31 of 33 new or added lines in 1 file covered. (93.94%)

731 of 774 relevant lines covered (94.44%)

5392.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
91.83
0.17% printer.go
Jobs
ID Job ID Ran Files Coverage
1 10944970911.1 19 Sep 2024 04:21PM UTC 5
94.44
GitHub Action Run
Source Files on build 10944970911
  • Tree
  • List 5
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 962ad538 on github
  • Prev Build on main (#6858873529)
  • Next Build on main (#10945369576)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc